Module Name:    src
Committed By:   simonb
Date:           Fri Apr  2 10:39:22 UTC 2021

Modified Files:
        src/sys/kern: subr_evcnt.c

Log Message:
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).


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/kern/subr_evcnt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_evcnt.c
diff -u src/sys/kern/subr_evcnt.c:1.14 src/sys/kern/subr_evcnt.c:1.15
--- src/sys/kern/subr_evcnt.c:1.14	Thu Apr  1 04:41:38 2021
+++ src/sys/kern/subr_evcnt.c	Fri Apr  2 10:39:22 2021
@@ -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 @@ SYSCTL_SETUP(sysctl_evcnt_setup, "sysctl
 }
 
 #ifdef __HAVE_LEGACY_INTRCNT
-extern long intrcnt[], eintrcnt[];
+extern u_int intrcnt[], eintrcnt[];
 extern char intrnames[];
 static size_t nintr;
 struct evcnt *intr_evcnts;

Reply via email to