From 961e17193887734ec977e93618bba0f045951d43 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Nov 2007 15:31:06 -0600 Subject: xcreate(): perror already prints error name and newline, remove redundancy. --- lib/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lib.c b/lib/lib.c index fe85c5fe..95ba1216 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -188,7 +188,7 @@ void xaccess(char *path, int flags) 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; } -- cgit v1.2.3