From f75f446e523fadc5d308a88b7f98dad44da898e4 Mon Sep 17 00:00:00 2001 From: uwe Date: Fri, 27 Jan 2006 03:07:31 +0000 Subject: [PATCH] More constification. --- sys/arch/macppc/stand/ofwboot/Locore.c | 14 +++++++------- sys/arch/macppc/stand/ofwboot/openfirm.h | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sys/arch/macppc/stand/ofwboot/Locore.c b/sys/arch/macppc/stand/ofwboot/Locore.c index e51cc0195b26..63e582185964 100644 --- a/sys/arch/macppc/stand/ofwboot/Locore.c +++ b/sys/arch/macppc/stand/ofwboot/Locore.c @@ -1,4 +1,4 @@ -/* $NetBSD: Locore.c,v 1.20 2006/01/27 02:58:50 uwe Exp $ */ +/* $NetBSD: Locore.c,v 1.21 2006/01/27 03:07:31 uwe Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -218,14 +218,14 @@ OF_getprop(int handle, const char *prop, void *buf, int buflen) #ifdef __notyet__ /* Has a bug on FirePower */ int -OF_setprop(int handle, char *prop, void *buf, int len) +OF_setprop(int handle, const char *prop, void *buf, int len) { static struct { const char *name; int nargs; int nreturns; int phandle; - char *prop; + const char *prop; void *buf; int len; int size; @@ -246,13 +246,13 @@ OF_setprop(int handle, char *prop, void *buf, int len) #endif int -OF_open(char *dname) +OF_open(const char *dname) { static struct { const char *name; int nargs; int nreturns; - char *dname; + const char *dname; int handle; } args = { "open", @@ -524,14 +524,14 @@ OF_chain(void *virt, u_int size, boot_entry_t entry, void *arg, u_int len) #endif int -OF_call_method(char *method, int ihandle, int nargs, int nreturns, ...) +OF_call_method(const char *method, int ihandle, int nargs, int nreturns, ...) { va_list ap; static struct { const char *name; int nargs; int nreturns; - char *method; + const char *method; int ihandle; int args_n_results[12]; } args = { diff --git a/sys/arch/macppc/stand/ofwboot/openfirm.h b/sys/arch/macppc/stand/ofwboot/openfirm.h index 4e25a36e1476..5e7eb38a3901 100644 --- a/sys/arch/macppc/stand/ofwboot/openfirm.h +++ b/sys/arch/macppc/stand/ofwboot/openfirm.h @@ -1,4 +1,4 @@ -/* $NetBSD: openfirm.h,v 1.5 2006/01/27 02:54:15 uwe Exp $ */ +/* $NetBSD: openfirm.h,v 1.6 2006/01/27 03:07:31 uwe Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -44,9 +44,9 @@ int OF_finddevice(const char *); int OF_instance_to_package(int); int OF_getprop(int, const char *, void *, int); #ifdef __notyet__ -int OF_setprop(int, char *, void *, int); +int OF_setprop(int, const char *, void *, int); #endif -int OF_open(char *); +int OF_open(const char *); void OF_close(int); int OF_write(int, void *, int); int OF_read(int, void *, int); @@ -55,4 +55,4 @@ void *OF_claim(void *, u_int, u_int); void OF_release(void *, u_int); int OF_milliseconds(void); void OF_chain(void *, u_int, boot_entry_t, void *, u_int); -int OF_call_method(char *, int, int, int, ...); +int OF_call_method(const char *, int, int, int, ...);