Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0068da6a authored by Elliott Hughes's avatar Elliott Hughes
Browse files

android_reboot should take a const char*.

The kernel argument is actually a void*, but it's only read from.

Change-Id: I305c50249bf12b7fbdea4721257aed52a0372f8d
parent e44d25d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+1 −1
Original line number Diff line number Diff line
@@ -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;