Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-10-25 19:10:08 +0400
committerMatt Kraai <kraai@debian.org>2000-10-25 19:10:08 +0400
commit324a778f31ac99f2c9d947a99dc4c37902bde6fe (patch)
tree137420d5835bb40bc9712e895da5377c664bd4b3 /coreutils
parentb60208dd8fe3328a5db8be1dc958e62c9898a73b (diff)
Added a fatalPerror function to simplify error handling.
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 1002c0771..6868a913e 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -116,8 +116,7 @@ extern int dd_main(int argc, char **argv)
* here anyways... */
/* free(buf); */
- perror(inFile);
- exit(FALSE);
+ fatalPerror("%s", inFile);
}
if (outFile == NULL)
@@ -132,8 +131,7 @@ extern int dd_main(int argc, char **argv)
/* close(inFd);
free(buf); */
- perror(outFile);
- exit(FALSE);
+ fatalPerror("%s", outFile);
}
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);