X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-mailinfo.c;h=e6472293d47611d415276f6057227d9c93788f63;hb=5b85143ba548c6c0c35df5e606ee3568c55ca0da;hp=0c65f9314501bc8c704d326ceeb1ae99bc974b28;hpb=1e49cb8ad44cfb926b719061fa41f42e62291560;p=git.git diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c index 0c65f9314..e6472293d 100644 --- a/builtin-mailinfo.c +++ b/builtin-mailinfo.c @@ -2,15 +2,6 @@ * Another stupid program, this one parsing the headers of an * email to figure out authorship and subject */ -#define _GNU_SOURCE -#include -#include -#include -#include -#ifndef NO_ICONV -#include -#endif -#include "git-compat-util.h" #include "cache.h" #include "builtin.h" @@ -451,17 +442,6 @@ static int read_one_header_line(char *line, int sz, FILE *in) return ofs; } -static unsigned hexval(int c) -{ - if (c >= '0' && c <= '9') - return c - '0'; - if (c >= 'a' && c <= 'f') - return c - 'a' + 10; - if (c >= 'A' && c <= 'F') - return c - 'A' + 10; - return ~0; -} - static int decode_q_segment(char *in, char *ot, char *ep, int rfc2047) { int c;