diff options
| author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 16:11:52 -0700 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:59:15 +0200 |
| commit | 577711f36e32203c4664a288b2c408eb21c27644 (patch) | |
| tree | 9d34adf1c5ff71bc38ca47a0b7435bc0e1958e03 /lib/vsprintf.c | |
| parent | cb098566d9e67b52f6478a429fdae2d071271c95 (diff) | |
lib/vsprintf.c: fix comparison to bool
Fixing 2 coccinelle warnings:
lib/vsprintf.c:2350:2-9: WARNING: Assignment of bool to 0/1
lib/vsprintf.c:2389:3-10: WARNING: Assignment of bool to 0/1
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/vsprintf.c')
| -rw-r--r-- | lib/vsprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index b81a4ffc7..cfbc48076 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2256,7 +2256,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args) break; base = 10; - is_sign = 0; + is_sign = false; switch (*fmt++) { case 'c': @@ -2295,7 +2295,7 @@ int vsscanf(const char *buf, const char *fmt, va_list args) case 'i': base = 0; case 'd': - is_sign = 1; + is_sign = true; case 'u': break; case '%': |
