diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /utility.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.bz2 busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip |
Use errorMsg rather than fprintf.
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -299,7 +299,7 @@ copyFile(const char *srcName, const char *destName, | |||
299 | 299 | ||
300 | if ((srcStatBuf.st_dev == dstStatBuf.st_dev) && | 300 | if ((srcStatBuf.st_dev == dstStatBuf.st_dev) && |
301 | (srcStatBuf.st_ino == dstStatBuf.st_ino)) { | 301 | (srcStatBuf.st_ino == dstStatBuf.st_ino)) { |
302 | fprintf(stderr, "Copying file \"%s\" to itself\n", srcName); | 302 | errorMsg("Copying file \"%s\" to itself\n", srcName); |
303 | return FALSE; | 303 | return FALSE; |
304 | } | 304 | } |
305 | 305 | ||
@@ -630,7 +630,7 @@ int recursiveAction(const char *fileName, | |||
630 | continue; | 630 | continue; |
631 | } | 631 | } |
632 | if (strlen(fileName) + strlen(next->d_name) + 1 > BUFSIZ) { | 632 | if (strlen(fileName) + strlen(next->d_name) + 1 > BUFSIZ) { |
633 | fprintf(stderr, name_too_long, "ftw"); | 633 | errorMsg(name_too_long); |
634 | return FALSE; | 634 | return FALSE; |
635 | } | 635 | } |
636 | memset(nextFile, 0, sizeof(nextFile)); | 636 | memset(nextFile, 0, sizeof(nextFile)); |
@@ -995,8 +995,7 @@ int get_console_fd(char *tty_name) | |||
995 | if (is_a_console(fd)) | 995 | if (is_a_console(fd)) |
996 | return fd; | 996 | return fd; |
997 | 997 | ||
998 | fprintf(stderr, | 998 | errorMsg("Couldnt get a file descriptor referring to the console\n"); |
999 | "Couldnt get a file descriptor referring to the console\n"); | ||
1000 | return -1; /* total failure */ | 999 | return -1; /* total failure */ |
1001 | } | 1000 | } |
1002 | 1001 | ||