summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 32f4cc4)
raw | patch | inline | side by side (parent: 32f4cc4)
author | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Aug 2009 05:17:25 +0000 (22:17 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Aug 2009 05:21:30 +0000 (22:21 -0700) |
It fed two arguments to override the corresponding global variables,
but the caller always assigned the values to the global variables
first and then passed those global variables to this function.
Stop pretending to be a proper API to confuse people.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
but the caller always assigned the values to the global variables
first and then passed those global variables to this function.
Stop pretending to be a proper API to confuse people.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mailinfo.c | patch | blob | history |
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index b0b5d8f6cb5107f3422d6107fd56f35ef62786f6..50326d911c2ea317886b70f456c1ac56405a37bb 100644 (file)
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
fprintf(fout, "\n");
}
-static int mailinfo(FILE *in, FILE *out, int ks, const char *encoding,
- const char *msg, const char *patch)
+static int mailinfo(FILE *in, FILE *out, const char *msg, const char *patch)
{
int peek;
- keep_subject = ks;
- metainfo_charset = encoding;
fin = in;
fout = out;
if (argc != 3)
usage(mailinfo_usage);
- return !!mailinfo(stdin, stdout, keep_subject, metainfo_charset, argv[1], argv[2]);
+ return !!mailinfo(stdin, stdout, argv[1], argv[2]);
}