aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
commited2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /coreutils/uniq.c
parentf35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff)
downloadbusybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.gz
busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.bz2
busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.zip
Use errorMsg rather than fprintf.
git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/uniq.c')
-rw-r--r--coreutils/uniq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c
index 64acf046a..16b257670 100644
--- a/coreutils/uniq.c
+++ b/coreutils/uniq.c
@@ -127,11 +127,11 @@ set_file_pointers(int schema, FILE ** in, FILE ** out, char **argv)
127 break; 127 break;
128 } 128 }
129 if (*in == NULL) { 129 if (*in == NULL) {
130 fprintf(stderr, "uniq: %s: %s\n", argv[0], strerror(errno)); 130 errorMsg("%s: %s\n", argv[0], strerror(errno));
131 return errno; 131 return errno;
132 } 132 }
133 if (*out == NULL) { 133 if (*out == NULL) {
134 fprintf(stderr, "uniq: %s: %s\n", argv[1], strerror(errno)); 134 errorMsg("%s: %s\n", argv[1], strerror(errno));
135 return errno; 135 return errno;
136 } 136 }
137 return 0; 137 return 0;
@@ -187,4 +187,4 @@ int uniq_main(int argc, char **argv)
187 return(0); 187 return(0);
188} 188}
189 189
190/* $Id: uniq.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */ 190/* $Id: uniq.c,v 1.12 2000/07/14 01:51:25 kraai Exp $ */