payloads/libpayload/libc: Do cosmetic fixes

Make the code follow the coding style.

Signed-off-by: Harshit Sharma <harshitsharmajs@gmail.com>
Change-Id: I4ca168c4aedddef51103b270f105feab93739ecc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41649
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Harshit Sharma
2020-05-22 13:07:17 +05:30
committed by Patrick Georgi
parent c43a09b118
commit 8f27374768

View File

@ -491,10 +491,10 @@ unsigned long long int strtoull(const char *ptr, char **endptr, int base)
else if (ptr[0] == '0') { else if (ptr[0] == '0') {
base = 8; base = 8;
ptr++; ptr++;
} } else {
else
base = 10; base = 10;
} }
}
/* Base 16 allows the 0x on front - so skip over it */ /* Base 16 allows the 0x on front - so skip over it */
@ -516,7 +516,8 @@ unsigned long long int strtoull(const char *ptr, char **endptr, int base)
unsigned long int strtoul(const char *ptr, char **endptr, int base) unsigned long int strtoul(const char *ptr, char **endptr, int base)
{ {
unsigned long long val = strtoull(ptr, endptr, base); unsigned long long val = strtoull(ptr, endptr, base);
if (val > ULONG_MAX) return ULONG_MAX; if (val > ULONG_MAX)
return ULONG_MAX;
return val; return val;
} }