max_option_length[] holds small ints, uint8_t is enough
[oweals/busybox.git] / networking / udhcp / dhcpc.c
index 7cb1dfe5d4682556f78b55662b3670409dcad06a..961a1712af57e91d2ae8053f1ec6268305bf42cb 100644 (file)
@@ -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;
 }