diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-16 15:40:54 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-16 15:40:54 +0200 |
commit | 2416fefc0adc6061212e5ccbf166c8c987385527 (patch) | |
tree | 086d7ac1479949dc5c707b3ec7788921c9d67c81 /ubi-utils/new-utils/src/common.h | |
parent | 6d9a03eb4f0f5c0b5f917d1092c4d851a392b9fb (diff) |
ubi-utils: fix compilation warnings
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/new-utils/src/common.h')
-rw-r--r-- | ubi-utils/new-utils/src/common.h | 3 |
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, " "); \ |