1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-05 15:16:34 +02:00

mailmap: debug: eliminate -Wformat field precision type warning

The compiler complains that '*' in fprintf() format "%.*s" should
have type int, but we pass size_t. Fix this.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Eric Sunshine 2013-07-15 02:54:11 -04:00 committed by Junio C Hamano
parent 0939a242fe
commit a8002a5f0e

View File

@ -309,7 +309,7 @@ int map_user(struct string_list *map,
struct mailmap_entry *me;
debug_mm("map_user: map '%.*s' <%.*s>\n",
*namelen, *name, *emaillen, *email);
(int)*namelen, *name, (int)*emaillen, *email);
item = lookup_prefix(map, *email, *emaillen);
if (item != NULL) {
@ -337,8 +337,8 @@ int map_user(struct string_list *map,
*name = mi->name;
*namelen = strlen(*name);
}
debug_mm("map_user: to '%.*s' <%.*s>\n", *namelen, *name,
*emaillen, *email);
debug_mm("map_user: to '%.*s' <%.*s>\n", (int)*namelen, *name,
(int)*emaillen, *email);
return 1;
}
debug_mm("map_user: --\n");