Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ofw Appease -Wcast-qual
details: https://anonhg.NetBSD.org/src/rev/ddccc5848c77
branches: trunk
changeset: 581641:ddccc5848c77
user: scw <scw%NetBSD.org@localhost>
date: Fri Jun 03 13:01:29 2005 +0000
description:
Appease -Wcast-qual
diffstat:
sys/arch/arm/ofw/openfirm.c | 92 ++++++++++++++++++++++----------------------
1 files changed, 46 insertions(+), 46 deletions(-)
diffs (truncated from 332 to 300 lines):
diff -r 447dd426408e -r ddccc5848c77 sys/arch/arm/ofw/openfirm.c
--- a/sys/arch/arm/ofw/openfirm.c Fri Jun 03 12:55:44 2005 +0000
+++ b/sys/arch/arm/ofw/openfirm.c Fri Jun 03 13:01:29 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: openfirm.c,v 1.3 2003/07/15 00:24:48 lukem Exp $ */
+/* $NetBSD: openfirm.c,v 1.4 2005/06/03 13:01:29 scw Exp $ */
/*
* Copyright 1997
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.3 2003/07/15 00:24:48 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.4 2005/06/03 13:01:29 scw Exp $");
#include <sys/param.h>
@@ -92,7 +92,7 @@
int phandle;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
@@ -114,7 +114,7 @@
int phandle;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
@@ -136,7 +136,7 @@
int phandle;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
@@ -158,7 +158,7 @@
int ihandle;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int ihandle;
@@ -178,15 +178,15 @@
int
OF_nextprop(handle, prop, nextprop)
int handle;
- char *prop;
+ const char *prop;
void *nextprop;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
- char *prop;
+ const char *prop;
void *nextprop;
int flags;
} args = {
@@ -207,16 +207,16 @@
int
OF_getprop(handle, prop, buf, buflen)
int handle;
- char *prop;
+ const char *prop;
void *buf;
int buflen;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
- char *prop;
+ const char *prop;
void *buf;
int buflen;
int size;
@@ -240,14 +240,14 @@
int
OF_getproplen(handle, prop)
int handle;
- char *prop;
+ const char *prop;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
- char *prop;
+ const char *prop;
int size;
} args = {
"getproplen",
@@ -264,13 +264,13 @@
int
OF_finddevice(name)
- char *name;
+ const char *name;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
- char *device;
+ const char *device;
int phandle;
} args = {
"finddevice",
@@ -291,7 +291,7 @@
int buflen;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int ihandle;
@@ -319,7 +319,7 @@
int buflen;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int phandle;
@@ -342,10 +342,10 @@
int
#ifdef __STDC__
-OF_call_method(char *method, int ihandle, int nargs, int nreturns, ...)
+OF_call_method(const char *method, int ihandle, int nargs, int nreturns, ...)
#else
OF_call_method(method, ihandle, nargs, nreturns, va_alist)
- char *method;
+ const char *method;
int ihandle;
int nargs;
int nreturns;
@@ -354,10 +354,10 @@
{
va_list ap;
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
- char *method;
+ const char *method;
int ihandle;
int args_n_results[12];
} args = {
@@ -407,10 +407,10 @@
int
#ifdef __STDC__
-OF_call_method_1(char *method, int ihandle, int nargs, ...)
+OF_call_method_1(const char *method, int ihandle, int nargs, ...)
#else
OF_call_method_1(method, ihandle, nargs, va_alist)
- char *method;
+ const char *method;
int ihandle;
int nargs;
va_dcl
@@ -418,10 +418,10 @@
{
va_list ap;
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
- char *method;
+ const char *method;
int ihandle;
int args_n_results[8];
} args = {
@@ -464,13 +464,13 @@
int
OF_open(dname)
- char *dname;
+ const char *dname;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
- char *dname;
+ const char *dname;
int handle;
} args = {
"open",
@@ -489,7 +489,7 @@
int handle;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int handle;
@@ -510,7 +510,7 @@
int len;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int ihandle;
@@ -534,15 +534,15 @@
int
OF_write(handle, addr, len)
int handle;
- void *addr;
+ const void *addr;
int len;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int ihandle;
- void *addr;
+ const void *addr;
int len;
int actual;
} args = {
@@ -565,7 +565,7 @@
u_quad_t pos;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int handle;
@@ -593,7 +593,7 @@
u_int align;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
void *virt;
@@ -620,7 +620,7 @@
u_int size;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
void *virt;
@@ -640,7 +640,7 @@
OF_milliseconds()
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
int ms;
@@ -656,13 +656,13 @@
void
OF_boot(bootspec)
- char *bootspec;
+ const char *bootspec;
{
static struct {
- char *name;
+ const char *name;
int nargs;
int nreturns;
Home |
Main Index |
Thread Index |
Old Index