diff options
author | avg <avg@FreeBSD.org> | 2009-06-11 17:15:20 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2009-06-11 17:15:20 +0000 |
commit | 7e0d744efe834added0ae292626140ad15760a14 (patch) | |
tree | 2bbfd41abff0903392d9f09df297d390e9494a87 /sys/dev/ofw | |
parent | 3c57df2dbc21e2351f670d53a773b309f3b1cddb (diff) | |
download | FreeBSD-src-7e0d744efe834added0ae292626140ad15760a14.zip FreeBSD-src-7e0d744efe834added0ae292626140ad15760a14.tar.gz |
strict kobj signatures: some ofw_setprop fixes
propname parameter is const
Reviewed by: imp, current@
Approved by: jhb (mentor)
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r-- | sys/dev/ofw/ofw_standard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ofw/ofw_standard.c b/sys/dev/ofw/ofw_standard.c index a05f072..addca71 100644 --- a/sys/dev/ofw/ofw_standard.c +++ b/sys/dev/ofw/ofw_standard.c @@ -83,8 +83,8 @@ static ssize_t ofw_std_getprop(ofw_t ofw, phandle_t package, const char *propname, void *buf, size_t buflen); static int ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf, size_t); -static int ofw_std_setprop(ofw_t ofw, phandle_t package, char *propname, - void *buf, size_t len); +static int ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname, + const void *buf, size_t len); static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len); static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device); @@ -383,8 +383,8 @@ ofw_std_nextprop(ofw_t ofw, phandle_t package, const char *previous, char *buf, /* Set the value of a property of a package. */ /* XXX Has a bug on FirePower */ static int -ofw_std_setprop(ofw_t ofw, phandle_t package, char *propname, void *buf, - size_t len) +ofw_std_setprop(ofw_t ofw, phandle_t package, const char *propname, + const void *buf, size_t len) { static struct { cell_t name; |