summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c19
-rw-r--r--src/or/or.h1
2 files changed, 0 insertions, 20 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 1c2779066f..1b072cbe12 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1026,25 +1026,6 @@ static void dumpstats(int severity) {
rend_service_dump_stats(severity);
}
-/** Called before we make any calls to network-related functions.
- * (Some operating systems require their network libraries to be
- * initialized.) */
-int network_init(void)
-{
-#ifdef MS_WINDOWS
- /* This silly exercise is necessary before windows will allow gethostbyname to work.
- */
- WSADATA WSAData;
- int r;
- r = WSAStartup(0x101,&WSAData);
- if (r) {
- log_fn(LOG_WARN,"Error initializing windows network layer: code was %d",r);
- return -1;
- }
-#endif
- return 0;
-}
-
/** Called by exit() as we shut down the process.
*/
static void exit_function(void)
diff --git a/src/or/or.h b/src/or/or.h
index 54f0d012ab..59bf131ce4 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1390,7 +1390,6 @@ int proxy_mode(or_options_t *options);
void handle_signals(int is_parent);
void tor_cleanup(void);
-int network_init(void);
int tor_main(int argc, char *argv[]);