More constification.
This commit is contained in:
parent
d9fda226fc
commit
f75f446e52
@ -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 = {
|
||||
|
@ -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, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user