Minor warning cleanups
authorEric Andersen <andersen@codepoet.org>
Sat, 17 Nov 2001 07:23:46 +0000 (07:23 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 17 Nov 2001 07:23:46 +0000 (07:23 -0000)
archival/tar.c
editors/sed.c

index c954b7e213b68abdabcf6583d0cf3d713927ad17..5f3f567840939d16d0cab1a9921129b35ac2bc4d 100644 (file)
@@ -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;
index 66dfa15057256839c4d01a7fefa70b022ff07dbe..8061964eee80369477a54b68374f5bfc96429245 100644 (file)
@@ -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