=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/fileio.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- src/usr.bin/mg/fileio.c 2002/03/16 19:30:29 1.26 +++ src/usr.bin/mg/fileio.c 2002/03/27 17:42:37 1.27 @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.26 2002/03/16 19:30:29 vincent Exp $ */ +/* $OpenBSD: fileio.c,v 1.27 2002/03/27 17:42:37 millert Exp $ */ /* * POSIX fileio.c @@ -297,8 +297,8 @@ != -1;) { if (linkbuf[0] != '/') { --cp; - while (cp > fnb && *--cp != '/') { - } + while (cp > fnb && *--cp != '/') + ; ++cp; (void) strncpy(cp, linkbuf, i); cp += i; @@ -333,8 +333,8 @@ default: break; } - while (*fn && (*cp++ = *fn++) != '/') { - } + while (*fn && (*cp++ = *fn++) != '/') + ; } if (cp[-1] == '/') --cp; @@ -350,8 +350,7 @@ * to the startup file name. */ char * -startupfile(suffix) - char *suffix; +startupfile(char *suffix) { static char file[NFILEN]; char *home; @@ -373,7 +372,7 @@ return file; nohome: #ifdef STARTUPFILE - if (suffix == NULL) + if (suffix == NULL) { if (snprintf(file, sizeof(file), "%s", STARTUPFILE) >= sizeof(file)) return NULL; @@ -395,9 +394,7 @@ #include "kbd.h" int -copy(frname, toname) - char *frname; - char *toname; +copy(char *frname, char *toname) { pid_t pid; int status; @@ -418,8 +415,7 @@ * dirname needs to have enough place to store an additional '/'. */ BUFFER * -dired_(dirname) - char *dirname; +dired_(char *dirname) { BUFFER *bp; FILE *dirpipe;