From: Mark Whitley Date: Wed, 2 Aug 2000 18:34:41 +0000 (-0000) Subject: Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg(). X-Git-Tag: 0_47~175 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ae166813f8a6db9784e75c9b3843e1e30a7465f;p=oweals%2Fbusybox.git Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg(). --- diff --git a/coreutils/cut.c b/coreutils/cut.c index e90a0e2e9..fec52d3d4 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c @@ -220,8 +220,7 @@ extern int cut_main(int argc, char **argv) for (i = optind; i < argc; i++) { file = fopen(argv[i], "r"); if (file == NULL) { - /* errorMsg("%s: %s\n", argv[i], strerror(errno)); */ - fprintf(stderr, "%s: %s\n", argv[i], strerror(errno)); + errorMsg("%s: %s\n", argv[i], strerror(errno)); } else { cut_file(file); fclose(file); diff --git a/cut.c b/cut.c index e90a0e2e9..fec52d3d4 100644 --- a/cut.c +++ b/cut.c @@ -220,8 +220,7 @@ extern int cut_main(int argc, char **argv) for (i = optind; i < argc; i++) { file = fopen(argv[i], "r"); if (file == NULL) { - /* errorMsg("%s: %s\n", argv[i], strerror(errno)); */ - fprintf(stderr, "%s: %s\n", argv[i], strerror(errno)); + errorMsg("%s: %s\n", argv[i], strerror(errno)); } else { cut_file(file); fclose(file);