From e19572e4cc0b8df95ebf60053029e454592a92d4 Mon Sep 17 00:00:00 2001 From: Yuri Pankov Date: Mon, 12 Jun 2017 20:16:28 -0700 Subject: OpenZFS 5428 - provide fts(), reallocarray(), and strtonum() Authored by: Yuri Pankov Reviewed by: Robert Mustacchi Approved by: Joshua M. Clulow Reviewed-by: Giuseppe Di Natale Reviewed-by: George Melikov Ported-by: Brian Behlendorf Porting Notes: * All hunks unrelated to ZFS were dropped. OpenZFS-issue: https://www.illumos.org/issues/5428 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/4585130 Closes #6326 --- module/zfs/spa_errlog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/zfs/spa_errlog.c') diff --git a/module/zfs/spa_errlog.c b/module/zfs/spa_errlog.c index 925e2af60..3c8aa543b 100644 --- a/module/zfs/spa_errlog.c +++ b/module/zfs/spa_errlog.c @@ -73,13 +73,13 @@ bookmark_to_name(zbookmark_phys_t *zb, char *buf, size_t len) static void name_to_bookmark(char *buf, zbookmark_phys_t *zb) { - zb->zb_objset = strtonum(buf, &buf); + zb->zb_objset = zfs_strtonum(buf, &buf); ASSERT(*buf == ':'); - zb->zb_object = strtonum(buf + 1, &buf); + zb->zb_object = zfs_strtonum(buf + 1, &buf); ASSERT(*buf == ':'); - zb->zb_level = (int)strtonum(buf + 1, &buf); + zb->zb_level = (int)zfs_strtonum(buf + 1, &buf); ASSERT(*buf == ':'); - zb->zb_blkid = strtonum(buf + 1, &buf); + zb->zb_blkid = zfs_strtonum(buf + 1, &buf); ASSERT(*buf == '\0'); } #endif -- cgit v1.2.3