mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
linux: spl: generic: ddi_strto*: match solaris ddi_strto*(9)
Recognise initial whitespace, + in both cases, and - also in unsigneds Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13434
This commit is contained in:
+2
-2
@@ -1068,8 +1068,8 @@ sa_setup(objset_t *os, uint64_t sa_obj, const sa_attr_reg_t *reg_attrs,
|
||||
za.za_num_integers);
|
||||
break;
|
||||
}
|
||||
VERIFY(ddi_strtoull(za.za_name, NULL, 10,
|
||||
(unsigned long long *)&lot_num) == 0);
|
||||
VERIFY0(ddi_strtoull(za.za_name, NULL, 10,
|
||||
(unsigned long long *)&lot_num));
|
||||
|
||||
(void) sa_add_layout_entry(os, lot_attrs,
|
||||
za.za_num_integers, lot_num,
|
||||
|
||||
Reference in New Issue
Block a user