mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
strict kobj signatures: some ofw_setprop fixes
propname parameter is const Reviewed by: imp, current@ Approved by: jhb (mentor)
This commit is contained in:
parent
8e45f0b7c6
commit
4fc23012c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194025
@ -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;
|
||||
|
@ -88,8 +88,8 @@ static ssize_t ofw_real_getprop(ofw_t, phandle_t package, const char *propname,
|
||||
void *buf, size_t buflen);
|
||||
static int ofw_real_nextprop(ofw_t, phandle_t package, const char *previous,
|
||||
char *buf, size_t);
|
||||
static int ofw_real_setprop(ofw_t, phandle_t package, char *propname,
|
||||
void *buf, size_t len);
|
||||
static int ofw_real_setprop(ofw_t, phandle_t package, const char *propname,
|
||||
const void *buf, size_t len);
|
||||
static ssize_t ofw_real_canon(ofw_t, const char *device, char *buf, size_t len);
|
||||
static phandle_t ofw_real_finddevice(ofw_t, const char *device);
|
||||
static ssize_t ofw_real_instance_to_path(ofw_t, ihandle_t instance, char *buf,
|
||||
@ -490,8 +490,8 @@ ofw_real_nextprop(ofw_t ofw, phandle_t package, const char *previous,
|
||||
/* Set the value of a property of a package. */
|
||||
/* XXX Has a bug on FirePower */
|
||||
static int
|
||||
ofw_real_setprop(ofw_t ofw, phandle_t package, char *propname, void *buf,
|
||||
size_t len)
|
||||
ofw_real_setprop(ofw_t ofw, phandle_t package, const char *propname,
|
||||
const void *buf, size_t len)
|
||||
{
|
||||
static struct {
|
||||
cell_t name;
|
||||
|
Loading…
Reference in New Issue
Block a user