From 0068da6a9355fae96549f9f50289648971cd64cd Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 3 Feb 2015 15:44:16 -0800 Subject: [PATCH] android_reboot should take a const char*. The kernel argument is actually a void*, but it's only read from. Change-Id: I305c50249bf12b7fbdea4721257aed52a0372f8d --- include/cutils/android_reboot.h | 2 +- libcutils/android_reboot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cutils/android_reboot.h b/include/cutils/android_reboot.h index 8c30e8e3f..85e1b7e5b 100644 --- a/include/cutils/android_reboot.h +++ b/include/cutils/android_reboot.h @@ -27,7 +27,7 @@ __BEGIN_DECLS /* Properties */ #define ANDROID_RB_PROPERTY "sys.powerctl" -int android_reboot(int cmd, int flags, char *arg); +int android_reboot(int cmd, int flags, const char *arg); __END_DECLS diff --git a/libcutils/android_reboot.c b/libcutils/android_reboot.c index aa8620616..6ae23c1f0 100644 --- a/libcutils/android_reboot.c +++ b/libcutils/android_reboot.c @@ -89,7 +89,7 @@ static void remount_ro(void) } -int android_reboot(int cmd, int flags UNUSED, char *arg) +int android_reboot(int cmd, int flags UNUSED, const char *arg) { int ret;