Minor cleanup thingy. fprintf(stderr, ...) -> errorMsg().
authorMark Whitley <markw@lineo.com>
Wed, 2 Aug 2000 18:34:41 +0000 (18:34 -0000)
committerMark Whitley <markw@lineo.com>
Wed, 2 Aug 2000 18:34:41 +0000 (18:34 -0000)
coreutils/cut.c
cut.c

index e90a0e2e9094d3af777ba83df9063e1d4dbc5118..fec52d3d4a4379da72c9764a84e9e3b0f2c3217e 100644 (file)
@@ -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 e90a0e2e9094d3af777ba83df9063e1d4dbc5118..fec52d3d4a4379da72c9764a84e9e3b0f2c3217e 100644 (file)
--- 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);