From 58e06c5f94736152628a7d45ff7a16d1b501ef76 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Fri, 7 Jul 2017 16:11:32 -0600 Subject: [PATCH] Use void instead of no parameters in 2 function declarations. In compiling some code with a picky "Android.mk" file, it is not happy with a function declaration that looks like: void foo(); It requires: void foo(void); This commit changes that for 2 functions in "log.h". Test: Build both Android and the code with a picky "Android.mk". Change-Id: Icd624df34db57e642fe6b1c7da77be9b05936936 --- liblog/include/log/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblog/include/log/log.h b/liblog/include/log/log.h index 3a215e976..d01708d8b 100644 --- a/liblog/include/log/log.h +++ b/liblog/include/log/log.h @@ -161,7 +161,7 @@ typedef enum { #endif #if __ANDROID_USE_LIBLOG_CLOCK_INTERFACE -clockid_t android_log_clockid(); +clockid_t android_log_clockid(void); #endif #endif /* __linux__ */ @@ -185,7 +185,7 @@ clockid_t android_log_clockid(); * May be used to clean up File descriptors after a Fork, the resources are * all O_CLOEXEC so wil self clean on exec(). */ -void __android_log_close(); +void __android_log_close(void); #endif #ifndef __ANDROID_USE_LIBLOG_RATELIMIT_INTERFACE