Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make extern declaration of intrcnt a u_int instead ...



details:   https://anonhg.NetBSD.org/src/rev/0f5e7ff9eb4b
branches:  trunk
changeset: 960910:0f5e7ff9eb4b
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 02 10:39:22 2021 +0000

description:
Make extern declaration of intrcnt a u_int instead of a long.  Matches
some declartions in some ports.  Fixes build on news68k (and probably
newsmips).

diffstat:

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

diffs (27 lines):

diff -r 49525f01762e -r 0f5e7ff9eb4b sys/kern/subr_evcnt.c
--- a/sys/kern/subr_evcnt.c     Fri Apr 02 10:30:35 2021 +0000
+++ b/sys/kern/subr_evcnt.c     Fri Apr 02 10:39:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_evcnt.c,v 1.14 2021/04/01 04:41:38 simonb Exp $ */
+/* $NetBSD: subr_evcnt.c,v 1.15 2021/04/02 10:39:22 simonb Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.14 2021/04/01 04:41:38 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.15 2021/04/02 10:39:22 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/evcnt.h>
@@ -380,7 +380,7 @@
 }
 
 #ifdef __HAVE_LEGACY_INTRCNT
-extern long intrcnt[], eintrcnt[];
+extern u_int intrcnt[], eintrcnt[];
 extern char intrnames[];
 static size_t nintr;
 struct evcnt *intr_evcnts;



Home | Main Index | Thread Index | Old Index