aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-12 10:55:10 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-12 10:55:10 -0500
commit954eeda619a59dae76144ad69967f0ed7341b564 (patch)
tree56ee86a7377fd159e3609344dcf16573fe2d818f /src/common/compat.c
parent54069b97d39599fb54fb2fd29db44a104d7bd555 (diff)
downloadtor-954eeda619a59dae76144ad69967f0ed7341b564.tar.gz
tor-954eeda619a59dae76144ad69967f0ed7341b564.zip
Stop checking whether environ is declared.
There seems to be pretty good evidence that it's always declared, and that checking for it is pointless. Closes ticket 19142.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index ebf05f59e1..97d1fafbbb 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -2390,15 +2390,6 @@ make_path_absolute(char *fname)
#endif
}
-#ifndef HAVE__NSGETENVIRON
-#ifndef HAVE_EXTERN_ENVIRON_DECLARED
-/* Some platforms declare environ under some circumstances, others don't. */
-#ifndef RUNNING_DOXYGEN
-extern char **environ;
-#endif
-#endif
-#endif
-
/** Return the current environment. This is a portable replacement for
* 'environ'. */
char **