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:
parent
c43a09b118
commit
8f27374768
|
@ -491,10 +491,10 @@ unsigned long long int strtoull(const char *ptr, char **endptr, int base)
|
|||
else if (ptr[0] == '0') {
|
||||
base = 8;
|
||||
ptr++;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
base = 10;
|
||||
}
|
||||
}
|
||||
|
||||
/* 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 long val = strtoull(ptr, endptr, base);
|
||||
if (val > ULONG_MAX) return ULONG_MAX;
|
||||
if (val > ULONG_MAX)
|
||||
return ULONG_MAX;
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue