commit | 324a778f31ac99f2c9d947a99dc4c37902bde6fe | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Wed Oct 25 15:10:08 2000 +0000 |
committer | Matt Kraai <kraai@debian.org> | Wed Oct 25 15:10:08 2000 +0000 |
tree | 137420d5835bb40bc9712e895da5377c664bd4b3 | |
parent | b60208dd8fe3328a5db8be1dc958e62c9898a73b [diff] [blame] |
Added a fatalPerror function to simplify error handling.
diff --git a/dd.c b/dd.c index 1002c07..6868a91 100644 --- a/dd.c +++ b/dd.c
@@ -116,8 +116,7 @@ * here anyways... */ /* free(buf); */ - perror(inFile); - exit(FALSE); + fatalPerror("%s", inFile); } if (outFile == NULL) @@ -132,8 +131,7 @@ /* close(inFd); free(buf); */ - perror(outFile); - exit(FALSE); + fatalPerror("%s", outFile); } lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);