aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/env.c11
-rw-r--r--coreutils/uudecode.c3
2 files changed, 4 insertions, 10 deletions
diff --git a/coreutils/env.c b/coreutils/env.c
index eb1f0b268..4cdbeae6a 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -29,14 +29,9 @@
* - use bb_default_error_retval
*/
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
+#include "busybox.h"
#include <errno.h>
-#include <unistd.h>
#include <getopt.h> /* struct option */
-#include "busybox.h"
#if ENABLE_FEATURE_ENV_LONG_OPTIONS
static const struct option env_long_options[] = {
@@ -50,7 +45,7 @@ int env_main(int argc, char** argv)
{
static char *cleanenv[1] = { NULL };
- char **ep, *p;
+ char **ep;
unsigned long opt;
llist_t *unset_env = NULL;
extern char **environ;
@@ -77,7 +72,7 @@ int env_main(int argc, char** argv)
}
}
- while (*argv && ((p = strchr(*argv, '=')) != NULL)) {
+ while (*argv && (strchr(*argv, '=') != NULL)) {
if (putenv(*argv) < 0) {
bb_perror_msg_and_die("putenv");
}
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 6050c0af7..2ec4306d0 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -129,9 +129,8 @@ int uudecode_main(int argc, char **argv)
FILE *src_stream;
char *outname = NULL;
char *line;
- int opt;
- opt = bb_getopt_ulflags(argc, argv, "o:", &outname);
+ bb_getopt_ulflags(argc, argv, "o:", &outname);
if (optind == argc) {
src_stream = stdin;