From 18789ce9742690d8bc5de79bf0308ea2dd65624c Mon Sep 17 00:00:00 2001 From: Vincent Labrecque Date: Mon, 1 Jul 2002 17:20:05 +0000 Subject: KNF --- usr.bin/mg/fileio.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c index 1cc5bc40c63..b780bb61a3f 100644 --- a/usr.bin/mg/fileio.c +++ b/usr.bin/mg/fileio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.31 2002/06/21 05:37:20 vincent Exp $ */ +/* $OpenBSD: fileio.c,v 1.32 2002/07/01 17:20:04 vincent Exp $ */ /* * POSIX fileio.c @@ -371,32 +371,32 @@ startupfile(char *suffix) if (suffix == NULL) { if (snprintf(file, sizeof(file), "%s/.mg", home) - >= sizeof(file)) - return NULL; + >= sizeof(file)) + return (NULL); } else { if (snprintf(file, sizeof(file), "%s/.mg-%s", home, suffix) - >= sizeof(file)) - return NULL; + >= sizeof(file)) + return (NULL); } if (access(file, R_OK) == 0) - return file; + return (file); nohome: #ifdef STARTUPFILE if (suffix == NULL) { if (snprintf(file, sizeof(file), "%s", STARTUPFILE) - >= sizeof(file)) - return NULL; + >= sizeof(file)) + return (NULL); } else { if (snprintf(file, sizeof(file), "%s%s", STARTUPFILE, suffix) - >= sizeof(file)) - return NULL; + >= sizeof(file)) + return (NULL); } if (access(file, R_OK) == 0) - return file; + return (file); #endif - return NULL; + return (NULL); } #endif @@ -440,7 +440,7 @@ copy(char *frname, char *toname) return (FALSE); } /* - * It is "normal" for this to fail since we can't garantee that + * It is "normal" for this to fail since we can't guarantee that * we will be running as root */ if (fchown(ofd, orig.st_uid, orig.st_gid) && errno != EPERM) -- cgit v1.2.3