Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Cast return value of _NET_STAT_GETREF
details: https://anonhg.NetBSD.org/src/rev/ec4ba98ca30d
branches: trunk
changeset: 332040:ec4ba98ca30d
user: matt <matt%NetBSD.org@localhost>
date: Fri Sep 05 06:01:24 2014 +0000
description:
Cast return value of _NET_STAT_GETREF
diffstat:
sys/net/net_stats.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r dc020d724b32 -r ec4ba98ca30d sys/net/net_stats.h
--- a/sys/net/net_stats.h Fri Sep 05 06:00:05 2014 +0000
+++ b/sys/net/net_stats.h Fri Sep 05 06:01:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: net_stats.h,v 1.3 2008/05/04 07:22:14 thorpej Exp $ */
+/* $NetBSD: net_stats.h,v 1.4 2014/09/05 06:01:24 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#ifdef _KERNEL
#include <sys/percpu.h>
-#define _NET_STAT_GETREF(stat) percpu_getref((stat))
+#define _NET_STAT_GETREF(stat) ((uint64_t *)percpu_getref((stat)))
#define _NET_STAT_PUTREF(stat) percpu_putref((stat))
#define _NET_STATINC(stat, x) \
Home |
Main Index |
Thread Index |
Old Index