diff options
author | ngie <ngie@FreeBSD.org> | 2017-03-16 04:58:12 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-03-16 04:58:12 +0000 |
commit | 3100d6f6dfd7bea82a2fe7136cf72d8423b715bd (patch) | |
tree | a948db7b9d9bbdcc6cfe720f639ec855d11e88aa /sys | |
parent | 16228760d5d66402e371e3d04113bf8996ddcf55 (diff) | |
download | FreeBSD-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.c | 5 |
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); |