aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Shepherd <masterdriverz@gentoo.org>2008-01-25 12:54:31 +0000
committerCharlie Shepherd <masterdriverz@gentoo.org>2008-01-25 12:54:31 +0000
commit94dd3e721e41a26e9762479fcdb53b0e6a8ebd2b (patch)
treed8d5e2c8c8f80679cc14c0923496563b8b726331
parent54524c91ebfd032a20b38fdbfc32af1bfa98c06f (diff)
downloadtoybox-94dd3e721e41a26e9762479fcdb53b0e6a8ebd2b.tar.gz
Remove extra newlines on error_paths
-rw-r--r--lib/lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lib.c b/lib/lib.c
index ec46b8b6..8c01314f 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -178,7 +178,7 @@ void xexec(char **argv)
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 @@ void xclose(int fd)
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 @@ char *xgetcwd(void)
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