Source-Changes-HG archive

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

[src/trunk]: src/sbin/sysctl Fix warning.



details:   https://anonhg.NetBSD.org/src/rev/37bed330a7f8
branches:  trunk
changeset: 483558:37bed330a7f8
user:      tsarna <tsarna%NetBSD.org@localhost>
date:      Sun Mar 12 22:58:05 2000 +0000

description:
Fix warning.

diffstat:

 sbin/sysctl/sysctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 18ea130f2064 -r 37bed330a7f8 sbin/sysctl/sysctl.c
--- a/sbin/sysctl/sysctl.c      Sun Mar 12 22:56:48 2000 +0000
+++ b/sbin/sysctl/sysctl.c      Sun Mar 12 22:58:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysctl.c,v 1.27 2000/03/12 22:56:49 tsarna Exp $       */
+/*     $NetBSD: sysctl.c,v 1.28 2000/03/12 22:58:05 tsarna Exp $       */
 
 /*
  * Copyright (c) 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)sysctl.c   8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: sysctl.c,v 1.27 2000/03/12 22:56:49 tsarna Exp $");
+__RCSID("$NetBSD: sysctl.c,v 1.28 2000/03/12 22:58:05 tsarna Exp $");
 #endif
 #endif /* not lint */
 
@@ -239,7 +239,7 @@
                if (fp == NULL) {
                        err(1, "%s", fn);
                } else {
-                       while (l = fparseln(fp, NULL, NULL, NULL, 0)) {
+                       while ((l = fparseln(fp, NULL, NULL, NULL, 0))) {
                                if (*l) {
                                        parse(l, 1);
                                }



Home | Main Index | Thread Index | Old Index