summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2001-11-17 07:23:46 +0000
committerEric Andersen2001-11-17 07:23:46 +0000
commit9c6b5fcb0a624423dc3fb4de808f4ea3118a4ad3 (patch)
tree604a011f7290a9ef0ce5cebf5243433e07b0535d
parentbff7a60f6378f37d6543e60bee52746c82511d70 (diff)
downloadbusybox-9c6b5fcb0a624423dc3fb4de808f4ea3118a4ad3.zip
busybox-9c6b5fcb0a624423dc3fb4de808f4ea3118a4ad3.tar.gz
Minor warning cleanups
-rw-r--r--archival/tar.c2
-rw-r--r--editors/sed.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c
index c954b7e..5f3f567 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -595,7 +595,9 @@ int tar_main(int argc, char **argv)
unsigned short untar_funct_required = 0;
unsigned short extract_function = 0;
int include_list_count = 0;
+#ifdef CONFIG_FEATURE_TAR_EXCLUDE
int exclude_list_count = 0;
+#endif
#ifdef CONFIG_FEATURE_TAR_GZIP
int gunzip_pid;
int gz_fd = 0;
diff --git a/editors/sed.c b/editors/sed.c
index 66dfa15..8061964 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -851,7 +851,8 @@ extern int sed_main(int argc, char **argv)
int i;
FILE *file;
for (i = optind; i < argc; i++) {
- if (file = wfopen(argv[i], "r")) {
+ file = wfopen(argv[i], "r");
+ if (file) {
process_file(file);
fclose(file);
} else