diff options
Diffstat (limited to 'otafault')
-rw-r--r-- | otafault/Android.mk | 2 | ||||
-rw-r--r-- | otafault/ota_io.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/otafault/Android.mk b/otafault/Android.mk index 75617a146..d441a7752 100644 --- a/otafault/Android.mk +++ b/otafault/Android.mk @@ -40,6 +40,8 @@ LOCAL_STATIC_LIBRARIES := libc include $(BUILD_STATIC_LIBRARY) +# otafault_test (static executable) +# =============================== include $(CLEAR_VARS) LOCAL_SRC_FILES := ota_io.cpp test.cpp diff --git a/otafault/ota_io.cpp b/otafault/ota_io.cpp index 9434ebea3..2d08fdef2 100644 --- a/otafault/ota_io.cpp +++ b/otafault/ota_io.cpp @@ -104,6 +104,7 @@ size_t ota_fread(void* ptr, size_t size, size_t nitems, FILE* stream) { } #else size_t status = fread(ptr, size, nitems, stream); + // If I/O error occurs, set the retry-update flag. if (status != nitems && errno == EIO) { have_eio_error = true; } |