Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/vgrind Use false/true on boolean, not increment.



details:   https://anonhg.NetBSD.org/src/rev/7fd8a84500e4
branches:  trunk
changeset: 802350:7fd8a84500e4
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Sep 11 08:22:03 2014 +0000

description:
Use false/true on boolean, not increment.
>From Henning Petersen in PR 49194.

diffstat:

 usr.bin/vgrind/vfontedpr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 68dc8e203268 -r 7fd8a84500e4 usr.bin/vgrind/vfontedpr.c
--- a/usr.bin/vgrind/vfontedpr.c        Thu Sep 11 08:20:52 2014 +0000
+++ b/usr.bin/vgrind/vfontedpr.c        Thu Sep 11 08:22:03 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfontedpr.c,v 1.15 2014/07/15 13:17:15 christos Exp $  */
+/*     $NetBSD: vfontedpr.c,v 1.16 2014/09/11 08:22:03 wiz Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)vfontedpr.c        8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: vfontedpr.c,v 1.15 2014/07/15 13:17:15 christos Exp $");
+__RCSID("$NetBSD: vfontedpr.c,v 1.16 2014/09/11 08:22:03 wiz Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -163,7 +163,7 @@
 
            /* act as a filter like eqn */
            if (!strcmp(argv[0], "-f")) {
-               filter++;
+               filter=true;
                argv[0] = argv[argc-1];
                argv[argc-1] = minus;
                continue;
@@ -177,13 +177,13 @@
 
            /* build an index */
            if (!strcmp(argv[0], "-x")) {
-               idx++;
+               idx=true;
                argv[0] = minusn;
            }
 
            /* indicate no keywords */
            if (!strcmp(argv[0], "-n")) {
-               nokeyw++;
+               nokeyw=true;
                argc--, argv++;
                continue;
            }



Home | Main Index | Thread Index | Old Index