diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2013-07-15 02:54:11 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 08:20:11 -0700 |
commit | a8002a5f0ee19e2a513483e763b8b4a7cdcaa48d (patch) | |
tree | f954807ebe5975779d937713465c6e804f0e2f2e /mailmap.c | |
parent | 0939a242fe95fd2c2a2a4094d827e144382de3d7 (diff) | |
download | git-a8002a5f0ee19e2a513483e763b8b4a7cdcaa48d.tar.gz |
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>
Diffstat (limited to 'mailmap.c')
-rw-r--r-- | mailmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |