summaryrefslogtreecommitdiff
path: root/builtin-mailinfo.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-20 23:04:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-20 23:08:14 (GMT)
commite49521b56d8715f46b93ee6bc95f7de9c6858365 (patch)
tree3303de68046e01531ea03e0efa2006a754ce4f27 /builtin-mailinfo.c
parent62e27f273d66afa996cb7aee6cdb25fbedc053f6 (diff)
downloadgit-e49521b56d8715f46b93ee6bc95f7de9c6858365.zip
git-e49521b56d8715f46b93ee6bc95f7de9c6858365.tar.gz
git-e49521b56d8715f46b93ee6bc95f7de9c6858365.tar.bz2
Make hexval() available to others.
builtin-mailinfo.c has its own hexval implementaiton but it can share the table-lookup one recently implemented in sha1_file.c Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-mailinfo.c')
-rw-r--r--builtin-mailinfo.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c
index 0c65f93..b8d7dbc 100644
--- a/builtin-mailinfo.c
+++ b/builtin-mailinfo.c
@@ -451,17 +451,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;