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 /utility.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz |
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, if ((srcStatBuf.st_dev == dstStatBuf.st_dev) && (srcStatBuf.st_ino == dstStatBuf.st_ino)) { - fprintf(stderr, "Copying file \"%s\" to itself\n", srcName); + errorMsg("Copying file \"%s\" to itself\n", srcName); return FALSE; } @@ -630,7 +630,7 @@ int recursiveAction(const char *fileName, continue; } if (strlen(fileName) + strlen(next->d_name) + 1 > BUFSIZ) { - fprintf(stderr, name_too_long, "ftw"); + errorMsg(name_too_long); return FALSE; } memset(nextFile, 0, sizeof(nextFile)); @@ -995,8 +995,7 @@ int get_console_fd(char *tty_name) if (is_a_console(fd)) return fd; - fprintf(stderr, - "Couldnt get a file descriptor referring to the console\n"); + errorMsg("Couldnt get a file descriptor referring to the console\n"); return -1; /* total failure */ } |