diff options
| author | Ron Yorston <rmy@pobox.com> | 2020-06-01 08:46:17 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2020-06-01 08:46:17 +0100 |
| commit | 5ea460a32a9882906c7ee3656b8fb0dcdbce2abc (patch) | |
| tree | 3b6598f7f908ade15b3f61a815563e2c43502ac1 /libbb | |
| parent | 8fdbb0564ddaf0361dff8a194a0329f86738343c (diff) | |
| download | busybox-w32-5ea460a32a9882906c7ee3656b8fb0dcdbce2abc.tar.gz busybox-w32-5ea460a32a9882906c7ee3656b8fb0dcdbce2abc.tar.bz2 busybox-w32-5ea460a32a9882906c7ee3656b8fb0dcdbce2abc.zip | |
win32: only initialise networking if necessary
A call to initialise networking is made during start up even if
the applet doesn't need it. Instead, only initialise networking
when a call is made to a function that definitely requires it.
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/appletlib.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 6e1947228..b2c85905c 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
| @@ -327,10 +327,6 @@ void lbb_prepare(const char *applet | |||
| 327 | if (ENABLE_LOCALE_SUPPORT) | 327 | if (ENABLE_LOCALE_SUPPORT) |
| 328 | setlocale(LC_ALL, ""); | 328 | setlocale(LC_ALL, ""); |
| 329 | 329 | ||
| 330 | #if ENABLE_PLATFORM_MINGW32 | ||
| 331 | init_winsock(); | ||
| 332 | #endif | ||
| 333 | |||
| 334 | #if ENABLE_FEATURE_INDIVIDUAL | 330 | #if ENABLE_FEATURE_INDIVIDUAL |
| 335 | /* Redundant for busybox (run_applet_and_exit covers that case) | 331 | /* Redundant for busybox (run_applet_and_exit covers that case) |
| 336 | * but needed for "individual applet" mode */ | 332 | * but needed for "individual applet" mode */ |
