[Toybox] [PATCH] Fix the type of the callback in getprop.

enh enh at google.com
Wed Mar 22 10:47:42 PDT 2017


Fixes:

  toys/android/getprop.c:56:39: warning: incompatible pointer types
    passing 'void (void *, const char *, const char *)' to parameter of
    type 'void (*)(void *, const char *, const char *, uint32_t)'
    (aka 'void (*)(void *, const char *, const char *, unsigned int)')
    [-Wincompatible-pointer-types]

  __system_property_read_callback(pi, read_callback, NULL);
                                      ^~~~~~~~~~~~~
---
 toys/android/getprop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-the-type-of-the-callback-in-getprop.patch
Type: text/x-patch
Size: 1287 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170322/dfb97731/attachment-0003.bin>


More information about the Toybox mailing list