diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 11 | ||||
-rw-r--r-- | src/common/compat.h | 2 | ||||
-rw-r--r-- | src/common/util.h | 1 |
3 files changed, 0 insertions, 14 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 1199fdae9b..e71931aa12 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -257,17 +257,6 @@ set_max_file_descriptors(rlim_t limit, int *max_out) return 0; } -/** Get name of current host and write it to <b>name</b> array, whose - * length is specified by <b>namelen</b> argument. Return 0 upon - * successful completion; otherwise return return -1. (Currently, - * this function is merely a mockable wrapper for POSIX gethostname().) - */ -MOCK_IMPL(int, -tor_gethostname,(char *name, size_t namelen)) -{ - return gethostname(name,namelen); -} - /** Hold the result of our call to <b>uname</b>. */ static char uname_result[256]; /** True iff uname_result is set. */ diff --git a/src/common/compat.h b/src/common/compat.h index e455dc8ef2..13e20a4ac2 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -111,8 +111,6 @@ /* ===== Net compatibility */ -MOCK_DECL(int,tor_gethostname,(char *name, size_t namelen)); - /** Specified SOCKS5 status codes. */ typedef enum { SOCKS5_SUCCEEDED = 0x00, diff --git a/src/common/util.h b/src/common/util.h index 8007aa05c7..0f991f8c46 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -72,7 +72,6 @@ int64_t clamp_double_to_int64(double number); /* String manipulation */ - /* Time helpers */ long tv_udiff(const struct timeval *start, const struct timeval *end); long tv_mdiff(const struct timeval *start, const struct timeval *end); |