mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
libzpool: fix ddi_strtoull to update nptr
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Charles Suh <charles.suh@gmail.com> Closes #14360
This commit is contained in:
parent
5091867ee6
commit
44a78c05b3
@ -770,10 +770,8 @@ random_get_pseudo_bytes(uint8_t *ptr, size_t len)
|
|||||||
int
|
int
|
||||||
ddi_strtoull(const char *str, char **nptr, int base, u_longlong_t *result)
|
ddi_strtoull(const char *str, char **nptr, int base, u_longlong_t *result)
|
||||||
{
|
{
|
||||||
(void) nptr;
|
errno = 0;
|
||||||
char *end;
|
*result = strtoull(str, nptr, base);
|
||||||
|
|
||||||
*result = strtoull(str, &end, base);
|
|
||||||
if (*result == 0)
|
if (*result == 0)
|
||||||
return (errno);
|
return (errno);
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user