aboutsummaryrefslogtreecommitdiff
path: root/toys/android/getprop.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-03-22 10:35:14 -0700
committerRob Landley <rob@landley.net>2017-03-27 13:20:09 -0500
commit7ec23e64af0f0bfd6e330c2cff467ae8524d16dd (patch)
tree3aa7ea954b41523b814cafe2fe663243994ea1ea /toys/android/getprop.c
parent6e9fcacfcbb92ea457a5c5f96d1a28dbd3cabd0e (diff)
downloadtoybox-7ec23e64af0f0bfd6e330c2cff467ae8524d16dd.tar.gz
Fix the type of the callback in getprop.
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); ^~~~~~~~~~~~~
Diffstat (limited to 'toys/android/getprop.c')
-rw-r--r--toys/android/getprop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/android/getprop.c b/toys/android/getprop.c
index eede9373..04a9b282 100644
--- a/toys/android/getprop.c
+++ b/toys/android/getprop.c
@@ -39,7 +39,8 @@ static char *get_property_context(const char *property)
return context;
}
-static void read_callback(void *unused, const char *name, const char *value)
+static void read_callback(void *unused, const char *name, const char *value,
+ unsigned serial)
{
if (!(TT.size&31)) TT.nv = xrealloc(TT.nv, (TT.size+32)*2*sizeof(char *));