X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=networking%2Fudhcp%2Fdhcpc.c;h=961a1712af57e91d2ae8053f1ec6268305bf42cb;hb=3f1123103cff3d6a67f5faa2f4b25f3c1e92a501;hp=7cb1dfe5d4682556f78b55662b3670409dcad06a;hpb=3d17d2b430a6a68c967b789c990cc441154d695e;p=oweals%2Fbusybox.git diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 7cb1dfe5d..961a1712a 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -215,7 +215,7 @@ int udhcpc_main(int argc, char **argv) #if ENABLE_GETOPT_LONG applet_long_options = udhcpc_longopts; #endif - opt = getopt32(argc, argv, "c:CV:fbH:h:F:i:np:qRr:s:T:t:vS", + opt = getopt32(argv, "c:CV:fbH:h:F:i:np:qRr:s:T:t:vS", &str_c, &str_V, &str_h, &str_h, &str_F, &client_config.interface, &client_config.pidfile, &str_r, &client_config.script, &str_T, &str_t @@ -311,7 +311,7 @@ int udhcpc_main(int argc, char **argv) if (listen_mode != LISTEN_NONE && sockfd < 0) { if (listen_mode == LISTEN_KERNEL) - sockfd = listen_socket(INADDR_ANY, CLIENT_PORT, client_config.interface); + sockfd = listen_socket(/*INADDR_ANY,*/ CLIENT_PORT, client_config.interface); else sockfd = raw_socket(client_config.ifindex); } @@ -546,7 +546,7 @@ int udhcpc_main(int argc, char **argv) ret0: retval = 0; ret: - if (client_config.pidfile) + /*if (client_config.pidfile) - remove_pidfile has it's own check */ remove_pidfile(client_config.pidfile); return retval; }