Author: gonzo
Date: Mon Apr  9 00:38:24 2018
New Revision: 332312
URL: https://svnweb.freebsd.org/changeset/base/332312

Log:
  Make OF_searchencprop signature consistent with OF_getencprop
  
  Use pcell_t* as a destination buffer argument instead of void
  pointer to be consistent with OF_getencprop signature.

Modified:
  head/sys/dev/ofw/openfirm.c
  head/sys/dev/ofw/openfirm.h

Modified: head/sys/dev/ofw/openfirm.c
==============================================================================
--- head/sys/dev/ofw/openfirm.c Sun Apr  8 23:17:51 2018        (r332311)
+++ head/sys/dev/ofw/openfirm.c Mon Apr  9 00:38:24 2018        (r332312)
@@ -428,7 +428,7 @@ OF_searchprop(phandle_t node, const char *propname, vo
 }
 
 ssize_t
-OF_searchencprop(phandle_t node, const char *propname, void *buf, size_t len)
+OF_searchencprop(phandle_t node, const char *propname, pcell_t *buf, size_t 
len)
 {
        ssize_t rv;
 

Modified: head/sys/dev/ofw/openfirm.h
==============================================================================
--- head/sys/dev/ofw/openfirm.h Sun Apr  8 23:17:51 2018        (r332311)
+++ head/sys/dev/ofw/openfirm.h Mon Apr  9 00:38:24 2018        (r332312)
@@ -114,7 +114,7 @@ int         OF_hasprop(phandle_t node, const char 
*propname);
 ssize_t                OF_searchprop(phandle_t node, const char *propname, 
void *buf,
                    size_t len);
 ssize_t                OF_searchencprop(phandle_t node, const char *propname,
-                   void *buf, size_t len);
+                   pcell_t *buf, size_t len);
 ssize_t                OF_getprop_alloc(phandle_t node, const char *propname,
                    void **buf);
 ssize_t                OF_getprop_alloc_multi(phandle_t node, const char 
*propname,
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to