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/hppa64/dev/apic.c | 4 ++-- sys/arch/hppa64/dev/elroyvar.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/hppa64/dev') diff --git a/sys/arch/hppa64/dev/apic.c b/sys/arch/hppa64/dev/apic.c index d3904c48b24..d351c65d6f3 100644 --- a/sys/arch/hppa64/dev/apic.c +++ b/sys/arch/hppa64/dev/apic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apic.c,v 1.2 2005/05/22 01:42:49 mickey Exp $ */ +/* $OpenBSD: apic.c,v 1.3 2009/08/22 02:54:50 mk Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -88,7 +88,7 @@ apic_intr_string(void *v, pci_intr_handle_t ih) void * apic_intr_establish(void *v, pci_intr_handle_t ih, - int pri, int (*handler)(void *), void *arg, char *name) + int pri, int (*handler)(void *), void *arg, const char *name) { /* struct elroy_softc *sc = v; */ /* volatile struct elroy_regs *r = sc->sc_regs; */ diff --git a/sys/arch/hppa64/dev/elroyvar.h b/sys/arch/hppa64/dev/elroyvar.h index 3a4fcd35ae5..7a319483d07 100644 --- a/sys/arch/hppa64/dev/elroyvar.h +++ b/sys/arch/hppa64/dev/elroyvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: elroyvar.h,v 1.2 2008/04/20 18:41:45 kettenis Exp $ */ +/* $OpenBSD: elroyvar.h,v 1.3 2009/08/22 02:54:50 mk Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -50,7 +50,7 @@ int apic_intr(void *v); int apic_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp); const char *apic_intr_string(void *v, pci_intr_handle_t ih); void *apic_intr_establish(void *v, pci_intr_handle_t ih, int pri, - int (*handler)(void *), void *arg, char *name); + int (*handler)(void *), void *arg, const char *name); void apic_intr_disestablish(void *v, void *cookie); void elroy_write32(volatile u_int32_t *p, u_int32_t v); -- cgit v1.2.3