summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-06-30 20:22:02 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-06-30 20:22:02 +0200
commit7c4a34195f8c3c0f7218876b0c8ea0883d324972 (patch)
tree024be59c3b7ba2cbcd895c800dacb68b39946d3f
parentMerge \\"Fix google-explicit-constructor warnings in bootable/recovery.\\" am: a9f648f010 (diff)
parentMerge \"Fix install.h\'s use of attribute printf.\" (diff)
downloadandroid_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar.gz
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar.bz2
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar.lz
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar.xz
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.tar.zst
android_bootable_recovery-7c4a34195f8c3c0f7218876b0c8ea0883d324972.zip
-rw-r--r--updater/install.cpp3
-rw-r--r--updater/install.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index cf3e938a4..4c4886d51 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -80,8 +80,7 @@ static void uiPrint(State* state, const std::string& buffer) {
fprintf(stderr, "%s", buffer.c_str());
}
-__attribute__((__format__(printf, 2, 3))) __nonnull((2))
-void uiPrintf(State* state, const char* format, ...) {
+void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) {
std::string error_msg;
va_list ap;
diff --git a/updater/install.h b/updater/install.h
index 70e343404..b3b8a4dd5 100644
--- a/updater/install.h
+++ b/updater/install.h
@@ -20,8 +20,8 @@
void RegisterInstallFunctions();
// uiPrintf function prints msg to screen as well as logs
-void uiPrintf(State* state, const char* format, ...);
+void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) __attribute__((__format__(printf, 2, 3)));
-static int make_parents(char* name);
+static int make_parents(char* _Nonnull name);
#endif