load-git.c: fix warning about sscanf() argument

Type of the 4th argument is detected as "enum <anonymous> *",
we cast it to (int *) when passed to sscanf().

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-09-23 17:38:41 +03:00 committed by Dirk Hohndel
parent b4b16ab7ab
commit 4c5c7e1733

View file

@ -306,7 +306,7 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds)
if (nr < TC_NR_CATEGORIES) {
struct taxonomy *t = &ds->taxonomy.category[nr];
t->value = strdup(mb_cstring(str));
sscanf(line, "cat %d origin %d \"", &t->category, &t->origin);
sscanf(line, "cat %d origin %d \"", &t->category, (int *)&t->origin);
ds->taxonomy.nr++;
}
}