Skip to content

Commit

Permalink
lib/vsprintf.c: fix comparison to bool
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jun 4, 2014
1 parent f8eaf29 commit 3f623eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2347,7 +2347,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':
Expand Down Expand Up @@ -2386,7 +2386,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 '%':
Expand Down

0 comments on commit 3f623eb

Please sign in to comment.