Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rpc.lockd Fix another conditional with wrong (missi...



details:   https://anonhg.NetBSD.org/src/rev/3e62c89a36e2
branches:  trunk
changeset: 344068:3e62c89a36e2
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 12 02:07:44 2016 +0000

description:
Fix another conditional with wrong (missing) parens.

diffstat:

 usr.sbin/rpc.lockd/test.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 03a1fb1448a4 -r 3e62c89a36e2 usr.sbin/rpc.lockd/test.c
--- a/usr.sbin/rpc.lockd/test.c Sat Mar 12 02:06:32 2016 +0000
+++ b/usr.sbin/rpc.lockd/test.c Sat Mar 12 02:07:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: test.c,v 1.7 2016/03/12 02:06:32 dholland Exp $        */
+/*     $NetBSD: test.c,v 1.8 2016/03/12 02:07:44 dholland Exp $        */
 
 #include <sys/cdefs.h>
 #include <stdio.h>
@@ -12,7 +12,7 @@
 static char sccsid[] = "from: @(#)nlm_prot.x 1.8 87/09/21 Copyr 1987 Sun Micro";
 static char sccsid[] = "from: * @(#)nlm_prot.x 2.1 88/08/01 4.0 RPCSRC";
 #else
-__RCSID("$NetBSD: test.c,v 1.7 2016/03/12 02:06:32 dholland Exp $");
+__RCSID("$NetBSD: test.c,v 1.8 2016/03/12 02:07:44 dholland Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -381,7 +381,8 @@
 #else
        (void)res_block;
 
-       if (out = nlm_lock_msg_1(&arg, cli)) {
+       out = nlm_lock_msg_1(&arg, cli);
+       if (out != NULL) {
                printf("Success!\n");
                printf("out->stat = %d", out->stat.stat);
        } else {



Home | Main Index | Thread Index | Old Index