*/
/*
- * 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()
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
-#include <getopt.h>
+#include <getopt.h> /* struct option */
#include "busybox.h"
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);