changeset 148:88dd003ccdf4

xcreate(): perror already prints error name and newline, remove redundancy.
author Rob Landley <rob@landley.net>
date Sun, 04 Nov 2007 15:31:06 -0600
parents ec6e13b2495d
children 58554af48c8b
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Wed Oct 31 01:13:36 2007 -0500
+++ b/lib/lib.c	Sun Nov 04 15:31:06 2007 -0600
@@ -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;
 }