Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs when calling nfs_boot_sendrecv pass NULL for pointer...



details:   https://anonhg.NetBSD.org/src/rev/312dacd288f3
branches:  trunk
changeset: 338065:312dacd288f3
user:      rtr <rtr%NetBSD.org@localhost>
date:      Sat May 09 18:12:19 2015 +0000

description:
when calling nfs_boot_sendrecv pass NULL for pointers instead of 0

diffstat:

 sys/nfs/krpc_subr.c    |  6 +++---
 sys/nfs/nfs_bootdhcp.c |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 032334891774 -r 312dacd288f3 sys/nfs/krpc_subr.c
--- a/sys/nfs/krpc_subr.c       Sat May 09 17:49:33 2015 +0000
+++ b/sys/nfs/krpc_subr.c       Sat May 09 18:12:19 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: krpc_subr.c,v 1.39 2015/03/27 07:18:11 hikaru Exp $    */
+/*     $NetBSD: krpc_subr.c,v 1.40 2015/05/09 18:12:19 rtr Exp $       */
 
 /*
  * Copyright (c) 1995 Gordon Ross, Adam Glass
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: krpc_subr.c,v 1.39 2015/03/27 07:18:11 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: krpc_subr.c,v 1.40 2015/05/09 18:12:19 rtr Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -314,7 +314,7 @@
        mhead->m_pkthdr.len = len;
        mhead->m_pkthdr.rcvif = NULL;
 
-       error = nfs_boot_sendrecv(so, nam, 0, mhead, krpccheck, &m, &from,
+       error = nfs_boot_sendrecv(so, nam, NULL, mhead, krpccheck, &m, &from,
            &xid, l);
        if (error)
                goto out;
diff -r 032334891774 -r 312dacd288f3 sys/nfs/nfs_bootdhcp.c
--- a/sys/nfs/nfs_bootdhcp.c    Sat May 09 17:49:33 2015 +0000
+++ b/sys/nfs/nfs_bootdhcp.c    Sat May 09 18:12:19 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_bootdhcp.c,v 1.53 2015/03/27 07:18:11 hikaru Exp $ */
+/*     $NetBSD: nfs_bootdhcp.c,v 1.54 2015/05/09 18:12:19 rtr Exp $    */
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bootdhcp.c,v 1.53 2015/03/27 07:18:11 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bootdhcp.c,v 1.54 2015/05/09 18:12:19 rtr Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_nfs_boot.h"
@@ -636,7 +636,7 @@
 #endif
 
        error = nfs_boot_sendrecv(so, nam, bootpset, m,
-                                 bootpcheck, 0, 0, &bpc, lwp);
+                                 bootpcheck, NULL, NULL, &bpc, lwp);
        if (error)
                goto out;
 
@@ -663,7 +663,7 @@
                bpc.expected_dhcpmsgtype = DHCPACK;
 
                error = nfs_boot_sendrecv(so, nam, bootpset, m,
-                                         bootpcheck, 0, 0, &bpc, lwp);
+                                         bootpcheck, NULL, NULL, &bpc, lwp);
                if (error)
                        goto out;
        }



Home | Main Index | Thread Index | Old Index