accidentally applied wrong (old) patch, fixing up...
[oweals/busybox.git] / miscutils / strings.c
index 1ff41ad9c7c99fb9316365128a5f7278b3acc3f9..0d5576e9b2aea464567bb8540cbec3f7c70e6e22 100644 (file)
@@ -45,7 +45,7 @@ int strings_main(int argc, char **argv)
        }
 
        do {
-               file = bb_wfopen(*argv, "r");
+               file = fopen_or_warn(*argv, "r");
                if (file) {
 PIPE:
                        count = 0;
@@ -75,7 +75,7 @@ PIPE:
                                }
                                count++;
                        } while (c != EOF);
-                       bb_fclose_nonstdin(file);
+                       fclose_if_not_stdin(file);
                } else {
                        status = EXIT_FAILURE;
                }
@@ -84,5 +84,5 @@ PIPE:
        if (ENABLE_FEATURE_CLEAN_UP)
                free(string);
 
-       bb_fflush_stdout_and_exit(status);
+       fflush_stdout_and_exit(status);
 }