Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net ifmedia_init(): Clear ifm_media with IFM_NONE instea...
details: https://anonhg.NetBSD.org/src/rev/19ebca999b13
branches: trunk
changeset: 350866:19ebca999b13
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jan 25 07:17:19 2017 +0000
description:
ifmedia_init(): Clear ifm_media with IFM_NONE instead of 0.
diffstat:
sys/net/if_media.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 07ba3e70a3a4 -r 19ebca999b13 sys/net/if_media.c
--- a/sys/net/if_media.c Wed Jan 25 06:33:52 2017 +0000
+++ b/sys/net/if_media.c Wed Jan 25 07:17:19 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.c,v 1.30 2009/10/05 21:27:36 dyoung Exp $ */
+/* $NetBSD: if_media.c,v 1.31 2017/01/25 07:17:19 msaitoh Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.30 2009/10/05 21:27:36 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_media.c,v 1.31 2017/01/25 07:17:19 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -113,7 +113,7 @@
TAILQ_INIT(&ifm->ifm_list);
ifm->ifm_cur = NULL;
- ifm->ifm_media = 0;
+ ifm->ifm_media = IFM_NONE;
ifm->ifm_mask = dontcare_mask; /* IF don't-care bits */
ifm->ifm_change = change_callback;
ifm->ifm_status = status_callback;
Home |
Main Index |
Thread Index |
Old Index