summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2002-07-01 17:20:05 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2002-07-01 17:20:05 +0000
commit18789ce9742690d8bc5de79bf0308ea2dd65624c (patch)
tree3589ddb84a41a03a234ece7de73a58f3ba0ddb3a /usr.bin
parent8ceb71e9bc305ae7318d4d95670e141000a4054e (diff)
KNF
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mg/fileio.c26
1 files changed, 13 insertions, 13 deletions
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)