From f3ac6ef2b6673c91ffa017aed3b72df859953066 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 19 Sep 2007 19:28:25 +0000 Subject: [PATCH] minor nits; no code change. --- sys/kern/uipc_syscalls.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 2c0fea6f42fd..2779de8755cb 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_syscalls.c,v 1.120 2007/09/19 04:33:43 dyoung Exp $ */ +/* $NetBSD: uipc_syscalls.c,v 1.121 2007/09/19 19:28:25 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1990, 1993 @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.120 2007/09/19 04:33:43 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.121 2007/09/19 19:28:25 christos Exp $"); #include "opt_pipe.h" @@ -403,7 +403,7 @@ sys_sendto(struct lwp *l, void *v, register_t *retval) msg.msg_namelen = SCARG(uap, tolen); msg.msg_iov = &aiov; msg.msg_iovlen = 1; - msg.msg_control = 0; + msg.msg_control = NULL; msg.msg_flags = 0; aiov.iov_base = __UNCONST(SCARG(uap, buf)); /* XXXUNCONST kills const */ aiov.iov_len = SCARG(uap, len); @@ -567,7 +567,7 @@ bad: free(iov, M_IOV); if (to) m_freem(to); - if (control != NULL) + if (control) m_freem(control); return (error); @@ -589,7 +589,7 @@ sys_recvfrom(struct lwp *l, void *v, register_t *retval) int error; struct mbuf *from; - msg.msg_name = NULL;; + msg.msg_name = NULL; msg.msg_iov = &aiov; msg.msg_iovlen = 1; aiov.iov_base = SCARG(uap, buf);