Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
mailmap: debug: eliminate -Wformat field precision type warning
author
Eric Sunshine
<sunshine@sunshineco.com>
Mon, 15 Jul 2013 06:54:11 +0000
(
02:54
-0400)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 15 Jul 2013 15:20:11 +0000
(08:20 -0700)
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>
mailmap.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0939a24
)
diff --git
a/mailmap.c
b/mailmap.c
index 62d998a37ca2a073210b4dda07f03184a53ae6ab..4cc6e8128f73f74f260cdc66bcbbad56afe573c0 100644
(file)
--- a/
mailmap.c
+++ b/
mailmap.c
@@
-309,7
+309,7
@@
int map_user(struct string_list *map,
struct mailmap_entry *me;
debug_mm("map_user: map '%.*s' <%.*s>\n",
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) {
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);
}
*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");
return 1;
}
debug_mm("map_user: --\n");