From 7ec23e64af0f0bfd6e330c2cff467ae8524d16dd Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 22 Mar 2017 10:35:14 -0700 Subject: 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); ^~~~~~~~~~~~~ --- toys/android/getprop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *)); -- cgit v1.2.3