diff options
author | teor <teor2345@gmail.com> | 2014-10-23 02:35:46 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2014-10-23 02:57:11 +1100 |
commit | c9d0967dd9b236254f2f461b7dab3909ee826351 (patch) | |
tree | 92119287269fdce390b249d2c69cd0bbe95c1e6b /src/common/compat.c | |
parent | 67fdfcf27c874a64e30776d2e3d2469d0711d9ee (diff) | |
download | tor-c9d0967dd9b236254f2f461b7dab3909ee826351.tar.gz tor-c9d0967dd9b236254f2f461b7dab3909ee826351.zip |
Fix minor typos, two line lengths, and a repeated include
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 7 |
1 files changed, 2 insertions, 5 deletions
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. |