=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/modes.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/mg/modes.c 2001/01/29 01:58:09 1.4 +++ src/usr.bin/mg/modes.c 2001/05/24 03:05:25 1.5 @@ -1,8 +1,8 @@ -/* $OpenBSD: modes.c,v 1.4 2001/01/29 01:58:09 niklas Exp $ */ +/* $OpenBSD: modes.c,v 1.5 2001/05/24 03:05:25 mickey Exp $ */ /* - * Commands to toggle modes. Without an argument, these functions will - * toggle the given mode. A negative or zero argument will turn the mode + * Commands to toggle modes. Without an argument, these functions will + * toggle the given mode. A negative or zero argument will turn the mode * off. A positive argument will turn the mode on. */ @@ -47,7 +47,7 @@ curbp->b_modes[++(curbp->b_nmodes)] = m; } else { /* fundamental is b_modes[0] and can't be unset */ - for (i = 1; i <= curbp->b_nmodes && m != curbp->b_modes[i]; + for (i = 1; i <= curbp->b_nmodes && m != curbp->b_modes[i]; i++); if (i > curbp->b_nmodes) return TRUE; /* mode wasn't set */ @@ -160,9 +160,9 @@ defb_nmodes--; } if (strcmp(mode, "overwrite") == 0) { - if (n <= 0) + if (n <= 0) defb_flag &= ~BFOVERWRITE; - else + else defb_flag |= BFOVERWRITE; } #ifdef NOTAB