diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/address.c | 2 | ||||
-rw-r--r-- | src/common/compat.c | 7 | ||||
-rw-r--r-- | src/common/log.c | 4 |
3 files changed, 5 insertions, 8 deletions
diff --git a/src/common/address.c b/src/common/address.c index 07b76597da..20f4d14ddd 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -883,7 +883,7 @@ tor_addr_copy(tor_addr_t *dest, const tor_addr_t *src) memcpy(dest, src, sizeof(tor_addr_t)); } -/** Copy a tor_addr_t from <b>src</b> to <b>dest</b>, taking extra case to +/** Copy a tor_addr_t from <b>src</b> to <b>dest</b>, taking extra care to * copy only the well-defined portions. Used for computing hashes of * addresses. */ diff --git a/src/common/compat.c b/src/common/compat.c index b6fdb1ad78..0f9f4fadc3 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -77,6 +77,7 @@ /* Includes for the process attaching prevention */ #if defined(HAVE_SYS_PRCTL_H) && defined(__linux__) +/* Only use the linux prctl; the IRIX prctl is totally different */ #include <sys/prctl.h> #elif defined(__APPLE__) #include <sys/types.h> @@ -110,10 +111,6 @@ #ifdef HAVE_SYS_FILE_H #include <sys/file.h> #endif -#if defined(HAVE_SYS_PRCTL_H) && defined(__linux__) -/* Only use the linux prctl; the IRIX prctl is totally different */ -#include <sys/prctl.h> -#endif #ifdef TOR_UNIT_TESTS #if !defined(HAVE_USLEEP) && defined(HAVE_SYS_SELECT_H) /* as fallback implementation for tor_sleep_msec */ @@ -2883,7 +2880,7 @@ tor_localtime_r(const time_t *timep, struct tm *result) /** @} */ /** @{ */ -/** As gmtimee_r, but defined for platforms that don't have it: +/** As gmtime_r, but defined for platforms that don't have it: * * Convert *<b>timep</b> to a struct tm in UTC, and store the value in * *<b>result</b>. Return the result on success, or NULL on failure. diff --git a/src/common/log.c b/src/common/log.c index 4b3817780b..6bdc332e5c 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -371,8 +371,8 @@ pending_log_message_free(pending_log_message_t *msg) tor_free(msg); } -/** Return true iff <b>lf</b> would like to receive a message with the specified - * <b>severity</b> in the specified <b>domain</b>. +/** Return true iff <b>lf</b> would like to receive a message with the + * specified <b>severity</b> in the specified <b>domain</b>. */ static INLINE int logfile_wants_message(const logfile_t *lf, int severity, |