diff options
author | Elliott Hughes <enh@google.com> | 2019-04-02 19:07:05 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-04-02 19:07:05 -0700 |
commit | ba78d39cdc007ce2edddc9af21147a554eef4e54 (patch) | |
tree | a5f8aa88e9f4fd374c0fed3aab8ad3d44e114314 /libcutils/include | |
parent | b3b1f10fffa5802c3b9fe42631bd22c2e52dc531 (diff) | |
parent | cf2f309cff92867262052ac99931116411760335 (diff) | |
download | system_core-ba78d39cdc007ce2edddc9af21147a554eef4e54.tar.gz system_core-ba78d39cdc007ce2edddc9af21147a554eef4e54.tar.bz2 system_core-ba78d39cdc007ce2edddc9af21147a554eef4e54.zip |
Merge "libcutils: android_reboot command should be unsigned." am: e3ec16b9c6
am: cf2f309cff
Change-Id: I15c19bc1d885fa368f2cb84fc33a79c1749f114f
Diffstat (limited to 'libcutils/include')
-rw-r--r-- | libcutils/include/cutils/android_reboot.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libcutils/include/cutils/android_reboot.h b/libcutils/include/cutils/android_reboot.h index 99030eddd..cd27eef88 100644 --- a/libcutils/include/cutils/android_reboot.h +++ b/libcutils/include/cutils/android_reboot.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef __CUTILS_ANDROID_REBOOT_H__ -#define __CUTILS_ANDROID_REBOOT_H__ +#pragma once #include <sys/cdefs.h> @@ -36,10 +35,8 @@ __BEGIN_DECLS /* Reboot or shutdown the system. * This call uses ANDROID_RB_PROPERTY to request reboot to init process. * Due to that, process calling this should have proper selinux permission - * to write to the property. Otherwise, the call will fail. + * to write to the property or the call will fail. */ -int android_reboot(int cmd, int flags, const char *arg); +int android_reboot(unsigned cmd, int flags, const char* arg); __END_DECLS - -#endif /* __CUTILS_ANDROID_REBOOT_H__ */ |