diff options
author | Matt Kraai | 2000-10-25 15:10:08 +0000 |
---|---|---|
committer | Matt Kraai | 2000-10-25 15:10:08 +0000 |
commit | 324a778f31ac99f2c9d947a99dc4c37902bde6fe (patch) | |
tree | 137420d5835bb40bc9712e895da5377c664bd4b3 /dd.c | |
parent | b60208dd8fe3328a5db8be1dc958e62c9898a73b (diff) | |
download | busybox-324a778f31ac99f2c9d947a99dc4c37902bde6fe.zip busybox-324a778f31ac99f2c9d947a99dc4c37902bde6fe.tar.gz |
Added a fatalPerror function to simplify error handling.
Diffstat (limited to 'dd.c')
-rw-r--r-- | dd.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |