forked from Imagelibrary/rtems
dev/io: Remove dead code in _IO_Vprintf()
This commit is contained in:
committed by
Kinsey Moore
parent
0c7a972b3c
commit
30125493b5
@@ -74,7 +74,7 @@ hex2ascii(int hex)
|
|||||||
* written in the buffer (i.e., the first character of the string).
|
* written in the buffer (i.e., the first character of the string).
|
||||||
* The buffer pointed to by `nbuf' must have length >= MAXNBUF.
|
* The buffer pointed to by `nbuf' must have length >= MAXNBUF.
|
||||||
*/
|
*/
|
||||||
static char *
|
static inline char *
|
||||||
ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper)
|
ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
@@ -84,7 +84,6 @@ ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper)
|
|||||||
do {
|
do {
|
||||||
*++p = hex2ascii_data[upper][num % base];
|
*++p = hex2ascii_data[upper][num % base];
|
||||||
} while (num /= base);
|
} while (num /= base);
|
||||||
if (lenp)
|
|
||||||
*lenp = p - nbuf;
|
*lenp = p - nbuf;
|
||||||
return (p);
|
return (p);
|
||||||
}
|
}
|
||||||
@@ -297,13 +296,13 @@ handle_nosign:
|
|||||||
handle_sign:
|
handle_sign:
|
||||||
if (jflag)
|
if (jflag)
|
||||||
num = va_arg(ap, intmax_t);
|
num = va_arg(ap, intmax_t);
|
||||||
#if __SIZEOF_PTRDIFF_T__ == __SIZEOF_LONG__
|
#if __SIZEOF_PTRDIFF_T__ != __SIZEOF_LONG__
|
||||||
else if (tflag)
|
else if (tflag)
|
||||||
num = va_arg(ap, ptrdiff_t);
|
num = va_arg(ap, ptrdiff_t);
|
||||||
#endif
|
#endif
|
||||||
else if (lflag)
|
else if (lflag)
|
||||||
num = va_arg(ap, long);
|
num = va_arg(ap, long);
|
||||||
#if __SIZEOF_SIZE_T__ == __SIZEOF_LONG__
|
#if __SIZEOF_SIZE_T__ != __SIZEOF_LONG__
|
||||||
else if (zflag)
|
else if (zflag)
|
||||||
num = va_arg(ap, ssize_t);
|
num = va_arg(ap, ssize_t);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user