summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-03-16 04:58:12 +0000
committerngie <ngie@FreeBSD.org>2017-03-16 04:58:12 +0000
commit3100d6f6dfd7bea82a2fe7136cf72d8423b715bd (patch)
treea948db7b9d9bbdcc6cfe720f639ec855d11e88aa /sys
parent16228760d5d66402e371e3d04113bf8996ddcf55 (diff)
downloadFreeBSD-src-3100d6f6dfd7bea82a2fe7136cf72d8423b715bd.zip
FreeBSD-src-3100d6f6dfd7bea82a2fe7136cf72d8423b715bd.tar.gz
MFC r310345:
r310345 (by sephe): build: Unbreak LINT
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/geom_map.c b/sys/geom/geom_map.c
index cfd886b..91e2787 100644
--- a/sys/geom/geom_map.c
+++ b/sys/geom/geom_map.c
@@ -147,8 +147,13 @@ find_marker(struct g_consumer *cp, const char *line, off_t *offset)
bzero(search_key, MAP_MAX_MARKER_LEN);
sectorsize = cp->provider->sectorsize;
+#ifdef __LP64__
+ ret = sscanf(line, "search:%li:%li:%63c",
+ &search_start, &search_step, search_key);
+#else
ret = sscanf(line, "search:%qi:%qi:%63c",
&search_start, &search_step, search_key);
+#endif
if (ret < 3)
return (1);
OpenPOWER on IntegriCloud