diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-28 11:57:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-28 11:57:01 -0400 |
commit | db1a420c4eab3fbb6dc02e9653bf21664b9bdf33 (patch) | |
tree | f9a6b636a01988565ba1d2fbfef8087a21b9e11b /src/common/compat.c | |
parent | 8c6ff9fec2ed8b1eed6a4c35370f62f1bf24a158 (diff) | |
download | tor-db1a420c4eab3fbb6dc02e9653bf21664b9bdf33.tar.gz tor-db1a420c4eab3fbb6dc02e9653bf21664b9bdf33.zip |
Move tor_gethostname to lib/net
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 11 |
1 files changed, 0 insertions, 11 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. */ |