Source-Changes-HG archive

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

[src/trunk]: src/sys/net simplify



details:   https://anonhg.NetBSD.org/src/rev/4bb740c22265
branches:  trunk
changeset: 765272:4bb740c22265
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 21:52:54 2011 +0000

description:
simplify

diffstat:

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

diffs (27 lines):

diff -r 5b1dbcaa7a38 -r 4bb740c22265 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c       Mon May 23 21:50:44 2011 +0000
+++ b/sys/net/if_bridge.c       Mon May 23 21:52:54 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridge.c,v 1.72 2010/12/07 20:38:26 pooka Exp $     */
+/*     $NetBSD: if_bridge.c,v 1.73 2011/05/23 21:52:54 joerg Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.72 2010/12/07 20:38:26 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.73 2011/05/23 21:52:54 joerg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bridge_ipf.h"
@@ -1080,7 +1080,7 @@
        struct ifbreq breq;
 
        memset(&breq, 0, sizeof(breq));
-       snprintf(breq.ifbr_ifsname, sizeof(breq.ifbr_ifsname), ifp->if_xname);
+       strlcpy(breq.ifbr_ifsname, ifp->if_xname, sizeof(breq.ifbr_ifsname));
 
        (void) bridge_ioctl_del(sc, &breq);
 }



Home | Main Index | Thread Index | Old Index