commit | 961e17193887734ec977e93618bba0f045951d43 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Nov 04 15:31:06 2007 -0600 |
committer | Rob Landley <rob@landley.net> | Sun Nov 04 15:31:06 2007 -0600 |
tree | 118ca605757c38a248f69b86a37c0fbcac9c792a | |
parent | 8ae467cdd0d90bed82ee7561e9be5bfbbc9952e1 [diff] [blame] |
xcreate(): perror already prints error name and newline, remove redundancy.
diff --git a/lib/lib.c b/lib/lib.c index fe85c5f..95ba121 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -188,7 +188,7 @@ int xcreate(char *path, int flags, int mode) { int fd = open(path, flags, mode); - if (fd == -1) perror_exit("No file %s\n", path); + if (fd == -1) perror_exit("%s", path); return fd; }