Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix build.



details:   https://anonhg.NetBSD.org/src/rev/b4b814d4524e
branches:  trunk
changeset: 454354:b4b814d4524e
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Sep 14 15:06:33 2019 +0000

description:
Fix build.

diffstat:

 sys/kern/uipc_socket.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r db40a81757c8 -r b4b814d4524e sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Sat Sep 14 15:02:47 2019 +0000
+++ b/sys/kern/uipc_socket.c    Sat Sep 14 15:06:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.282 2019/09/14 14:09:54 christos Exp $       */
+/*     $NetBSD: uipc_socket.c,v 1.283 2019/09/14 15:06:33 mlelstv Exp $        */
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.282 2019/09/14 14:09:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.283 2019/09/14 15:06:33 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1229,7 +1229,7 @@
                        u_short *e;
                        if (m != NULL)
                                goto dontblock;
-                       *e = so->so_error ? &so->so_error : &so->so_rerror;
+                       e = so->so_error ? &so->so_error : &so->so_rerror;
                        error = *e;
                        if ((flags & MSG_PEEK) == 0)
                                *e = 0;



Home | Main Index | Thread Index | Old Index