Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit a8002a5

Browse files
sunshinecogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0939a24 commit a8002a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mailmap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ int map_user(struct string_list *map,
309309
struct mailmap_entry *me;
310310

311311
debug_mm("map_user: map '%.*s' <%.*s>\n",
312-
*namelen, *name, *emaillen, *email);
312+
(int)*namelen, *name, (int)*emaillen, *email);
313313

314314
item = lookup_prefix(map, *email, *emaillen);
315315
if (item != NULL) {
@@ -337,8 +337,8 @@ int map_user(struct string_list *map,
337337
*name = mi->name;
338338
*namelen = strlen(*name);
339339
}
340-
debug_mm("map_user: to '%.*s' <%.*s>\n", *namelen, *name,
341-
*emaillen, *email);
340+
debug_mm("map_user: to '%.*s' <%.*s>\n", (int)*namelen, *name,
341+
(int)*emaillen, *email);
342342
return 1;
343343
}
344344
debug_mm("map_user: --\n");

0 commit comments

Comments
 (0)