diff options
author | Matt Kraai | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /coreutils/head.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz |
Use errorMsg rather than fprintf.
Diffstat (limited to 'coreutils/head.c')
-rw-r--r-- | coreutils/head.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index f42f483..b82678d 100644 --- a/coreutils/head.c +++ b/coreutils/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 $ */ |