changeset 252:8d751063a563

Add spaces after some commas (from Charlie Shepherd).
author Rob Landley <rob@landley.net>
date Sun, 27 Jan 2008 16:22:41 -0600
parents d9ddba2c7acf
children b59217241f71
files lib/lib.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Fri Jan 25 12:54:31 2008 +0000
+++ b/lib/lib.c	Sun Jan 27 16:22:41 2008 -0600
@@ -91,7 +91,7 @@
 void *xzalloc(size_t size)
 {
 	void *ret = xmalloc(size);
-	bzero(ret,size);
+	bzero(ret, size);
 	return ret;
 }
 
@@ -117,7 +117,7 @@
 // Die unless we can allocate a copy of this string.
 void *xstrdup(char *s)
 {
-	return xstrndup(s,strlen(s));
+	return xstrndup(s, strlen(s));
 }
 
 // Die unless we can allocate enough space to sprintf() into.
@@ -274,7 +274,7 @@
 
 void xstat(char *path, struct stat *st)
 {
-	if(stat(path, st)) perror_exit("Can't stat %s",path);
+	if(stat(path, st)) perror_exit("Can't stat %s", path);
 }
 
 // Cannonicalizes path by removing ".", "..", and "//" elements.  This is not
@@ -287,7 +287,7 @@
 	// If this isn't an absolute path, make it one with cwd.
 	if (path[0]!='/') {
 		char *cwd=xgetcwd();
-		path = xmsprintf("%s/%s",cwd,path);
+		path = xmsprintf("%s/%s", cwd, path);
 		free(cwd);
 	} else path = xstrdup(path);
 
@@ -347,7 +347,7 @@
 				} else rc = mkdir(path, 0777);
 			}
 			*p = old;
-			if(rc) perror_exit("mkpath '%s'",path);
+			if(rc) perror_exit("mkpath '%s'", path);
 		}
 		if (!*p) break;
 	}
@@ -601,7 +601,7 @@
 
 		if (!strcmp(*argv,"-")) fd=0;
 		else if (0>(fd = open(*argv, O_RDONLY))) {
-			perror_msg("%s",*argv);
+			perror_msg("%s", *argv);
 			toys.exitval = 1;
 			continue;
 		}