svn commit: r194025 - in head/sys: dev/ofw powerpc/ofw

Andriy Gapon avg at FreeBSD.org
Thu Jun 11 17:15:21 UTC 2009


Author: avg
Date: Thu Jun 11 17:15:20 2009
New Revision: 194025
URL: http://svn.freebsd.org/changeset/base/194025

Log:
  strict kobj signatures: some ofw_setprop fixes
  
  propname parameter is const
  
  Reviewed by:	imp, current@
  Approved by:	jhb (mentor)

Modified:
  head/sys/dev/ofw/ofw_standard.c
  head/sys/powerpc/ofw/ofw_real.c

Modified: head/sys/dev/ofw/ofw_standard.c
==============================================================================
--- head/sys/dev/ofw/ofw_standard.c	Thu Jun 11 17:14:54 2009	(r194024)
+++ head/sys/dev/ofw/ofw_standard.c	Thu Jun 11 17:15:20 2009	(r194025)
@@ -83,8 +83,8 @@ static ssize_t ofw_std_getprop(ofw_t ofw
     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 pa
 /* 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;

Modified: head/sys/powerpc/ofw/ofw_real.c
==============================================================================
--- head/sys/powerpc/ofw/ofw_real.c	Thu Jun 11 17:14:54 2009	(r194024)
+++ head/sys/powerpc/ofw/ofw_real.c	Thu Jun 11 17:15:20 2009	(r194025)
@@ -88,8 +88,8 @@ static ssize_t ofw_real_getprop(ofw_t, p
     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 p
 /* 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;


More information about the svn-src-head mailing list