mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +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
|
||||
ddi_strtoull(const char *str, char **nptr, int base, u_longlong_t *result)
|
||||
{
|
||||
(void) nptr;
|
||||
char *end;
|
||||
|
||||
*result = strtoull(str, &end, base);
|
||||
errno = 0;
|
||||
*result = strtoull(str, nptr, base);
|
||||
if (*result == 0)
|
||||
return (errno);
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user