changeset 251:d9ddba2c7acf

Remove extra newlines on error_paths
author Charlie Shepherd <masterdriverz@gentoo.org>
date Fri, 25 Jan 2008 12:54:31 +0000
parents 101a71a76c24
children 8d751063a563
files lib/lib.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Fri Jan 25 12:36:24 2008 +0000
+++ b/lib/lib.c	Fri Jan 25 12:54:31 2008 +0000
@@ -178,7 +178,7 @@
 
 void xaccess(char *path, int flags)
 {
-	if (access(path, flags)) perror_exit("Can't access '%s'\n", path);
+	if (access(path, flags)) perror_exit("Can't access '%s'", path);
 }
 
 // Die unless we can delete a file.  (File must exist to be deleted.)
@@ -210,7 +210,7 @@
 FILE *xfopen(char *path, char *mode)
 {
 	FILE *f = fopen(path, mode);
-	if (!f) perror_exit("No file %s\n", path);
+	if (!f) perror_exit("No file %s", path);
 	return f;
 }
 
@@ -274,7 +274,7 @@
 
 void xstat(char *path, struct stat *st)
 {
-	if(stat(path, st)) perror_exit("Can't stat %s\n",path);
+	if(stat(path, st)) perror_exit("Can't stat %s",path);
 }
 
 // Cannonicalizes path by removing ".", "..", and "//" elements.  This is not