From 8f6eb5c045896d13b411ab8906f9af8e2f258b5a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 24 Feb 2015 22:07:18 -0800 Subject: Fix build from implicit declaration. Turn the warning on by default and turn on -Werror so this doesn't happen next time. Change-Id: Id65bf0cb63bbf0ff224655b425463ae2f55435df --- minadbd/services.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'minadbd/services.c') diff --git a/minadbd/services.c b/minadbd/services.c index 357c222b4..7e419cc85 100644 --- a/minadbd/services.c +++ b/minadbd/services.c @@ -14,18 +14,19 @@ * limitations under the License. */ -#include +#include +#include #include -#include +#include #include -#include +#include #include "sysdeps.h" -#include "fdevent.h" -#include "fuse_adb_provider.h" #define TRACE_TAG TRACE_SERVICES #include "adb.h" +#include "fdevent.h" +#include "fuse_adb_provider.h" typedef struct stinfo stinfo; @@ -52,7 +53,8 @@ static void sideload_host_service(int sfd, void* cookie) s = adb_strtok_r(NULL, ":", &saveptr); uint32_t block_size = strtoul(s, NULL, 10); - printf("sideload-host file size %llu block size %lu\n", file_size, block_size); + printf("sideload-host file size %llu block size %" PRIu32 "\n", file_size, + block_size); int result = run_adb_fuse(sfd, file_size, block_size); -- cgit v1.2.3