add "make help"
[oweals/busybox.git] / coreutils / env.c
index d8b428561f81289ef3d93a154442decc957ad551..1a8ad7c787fe95167b211c2d3084a53198ff1b34 100644 (file)
@@ -34,8 +34,8 @@
  */
 
 /*
- * Modified by Vladimir Oleynik <andersen@codepoet.org> (C) 2003
- * - corretion "-" option usage
+ * Modified by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
+ * - correct "-" option usage
  * - multiple "-u unsetenv" support
  * - GNU long option support
  * - save errno after exec failed before bb_perror_msg()
@@ -47,7 +47,7 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <unistd.h>
-#include <getopt.h>
+#include <getopt.h> /* struct option */
 #include "busybox.h"
 
 
@@ -62,14 +62,10 @@ extern int env_main(int argc, char** argv)
        char **ep, *p;
        char *cleanenv[1] = { NULL };
        unsigned long opt;
-       llist_t list, *unset_env;
+       llist_t *unset_env = NULL;
        extern char **environ;
 
-       list.data = NULL;
-       list.link = NULL;
-       unset_env = &list;
-
-       bb_opt_complementaly = "u*";
+       bb_opt_complementally = "u*";
        bb_applet_long_options = env_long_options;
 
        opt = bb_getopt_ulflags(argc, argv, "+iu:", &unset_env);