From 06e29584d413606b21c240635e12d7500b385ae5 Mon Sep 17 00:00:00 2001 From: Michael Knudsen Date: Sat, 22 Aug 2009 02:54:52 +0000 Subject: Constify the what/name parameter of pci_intr_establish(). Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.) --- sys/arch/sparc64/dev/pci_machdep.c | 4 ++-- sys/arch/sparc64/include/pci_machdep.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index 21350559d46..1b3200bafc4 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.38 2009/07/20 23:40:43 miod Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.39 2009/08/22 02:54:51 mk Exp $ */ /* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */ /* @@ -419,7 +419,7 @@ pci_intr_establish(pc, ih, level, func, arg, what) int level; int (*func)(void *); void *arg; - char *what; + const char *what; { void *cookie; diff --git a/sys/arch/sparc64/include/pci_machdep.h b/sys/arch/sparc64/include/pci_machdep.h index c46bedd887e..112e8c0bd16 100644 --- a/sys/arch/sparc64/include/pci_machdep.h +++ b/sys/arch/sparc64/include/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.22 2009/07/20 23:40:43 miod Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.23 2009/08/22 02:54:51 mk Exp $ */ /* $NetBSD: pci_machdep.h,v 1.7 2001/07/20 00:07:14 eeh Exp $ */ /* @@ -86,7 +86,7 @@ int pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *); int pci_intr_line(pci_chipset_tag_t, pci_intr_handle_t); const char *pci_intr_string(pci_chipset_tag_t, pci_intr_handle_t); void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t, - int, int (*)(void *), void *, char *); + int, int (*)(void *), void *, const char *); void pci_intr_disestablish(pci_chipset_tag_t, void *); int sparc64_pci_enumerate_bus(struct pci_softc *, -- cgit v1.2.3