diff options
Diffstat (limited to 'usr/klibc/vsscanf.c')
-rw-r--r-- | usr/klibc/vsscanf.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/usr/klibc/vsscanf.c b/usr/klibc/vsscanf.c index 51e50f7d0c916..b8f068cc087dc 100644 --- a/usr/klibc/vsscanf.c +++ b/usr/klibc/vsscanf.c @@ -88,7 +88,6 @@ int vsscanf(const char *buffer, const char *format, va_list ap) } state = st_normal; char *sarg = NULL; /* %s %c or %[ string argument */ enum bail bail = bail_none; - int sign; int converted = 0; /* Successful conversions */ unsigned long matchmap[((1 << CHAR_BIT) + (LONG_BIT - 1)) / LONG_BIT]; int matchinv = 0; /* Is match map inverted? */ @@ -177,33 +176,27 @@ int vsscanf(const char *buffer, const char *format, va_list ap) case 'p': /* Pointer */ rank = rank_ptr; base = 0; - sign = 0; goto scan_int; case 'i': /* Base-independent integer */ base = 0; - sign = 1; goto scan_int; case 'd': /* Decimal integer */ base = 10; - sign = 1; goto scan_int; case 'o': /* Octal integer */ base = 8; - sign = 0; goto scan_int; case 'u': /* Unsigned decimal integer */ base = 10; - sign = 0; goto scan_int; case 'x': /* Hexadecimal integer */ case 'X': base = 16; - sign = 0; goto scan_int; case 'n': /* # of characters consumed */ |