summaryrefslogtreecommitdiff
path: root/head.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-14 01:51:25 +0000
committerMatt Kraai2000-07-14 01:51:25 +0000
commitd537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /head.c
parent4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff)
downloadbusybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip
busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz
Use errorMsg rather than fprintf.
Diffstat (limited to 'head.c')
-rw-r--r--head.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/head.c b/head.c
index f42f483..b82678d 100644
--- a/head.c
+++ b/head.c
@@ -75,7 +75,7 @@ int head_main(int argc, char **argv)
case 'h':
usage(head_usage);
default:
- fprintf(stderr, "head: invalid option -- %c\n", opt);
+ errorMsg("invalid option -- %c\n", opt);
usage(head_usage);
}
} else {
@@ -95,8 +95,7 @@ int head_main(int argc, char **argv)
src = fopen(argv[i], "r");
if (!src) {
- fprintf(stderr, "head: %s: %s\n", argv[i],
- strerror(errno));
+ errorMsg("%s: %s\n", argv[i], strerror(errno));
} else {
/* emulating GNU behaviour */
if (need_headers) {
@@ -112,4 +111,4 @@ int head_main(int argc, char **argv)
return(0);
}
-/* $Id: head.c,v 1.11 2000/06/19 17:25:39 andersen Exp $ */
+/* $Id: head.c,v 1.12 2000/07/14 01:51:25 kraai Exp $ */