Reduce some var scopes

This commit is contained in:
Philippe Teuwen committed 2019-06-07 18:41:39 +02:00
1 parent ac6b0ec1ce
commit 732bc766f9
52 files changed
+318 -409

No files matched your search

+2 -4
View File
@@ -60,12 +60,10 @@ char const hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz";
*/
static char *
ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) {
char *p, c;
p = nbuf;
char *p = nbuf;
*p = '\0';
do {
c = hex2ascii(num % base);
char c = hex2ascii(num % base);
*++p = upper ? toupper(c) : c;
} while (num /= base);
if (lenp)