summaryrefslogtreecommitdiff
path: root/ubi-utils/new-utils/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/new-utils/src/common.h')
-rw-r--r--ubi-utils/new-utils/src/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubi-utils/new-utils/src/common.h b/ubi-utils/new-utils/src/common.h
index fdc69db..56fa020 100644
--- a/ubi-utils/new-utils/src/common.h
+++ b/ubi-utils/new-utils/src/common.h
@@ -55,7 +55,8 @@ extern "C" {
/* System error messages */
#define sys_errmsg(fmt, ...) ({ \
- int _err = errno, _i; \
+ int _err = errno; \
+ size_t _i; \
fprintf(stderr, PROGRAM_NAME ": error!: " fmt "\n", ##__VA_ARGS__); \
for (_i = 0; _i < sizeof(PROGRAM_NAME) + 1; _i++) \
fprintf(stderr, " "); \