Unidiff1 files changed, 0 insertions, 12 deletions
|
diff --git a/shared.c b/shared.c index 48002ac..f5875e4 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -88,20 +88,8 @@ void *cgit_free_commitinfo(struct commitinfo *info) |
88 | free(info); |
88 | free(info); |
89 | return NULL; |
89 | return NULL; |
90 | } |
90 | } |
91 | |
91 | |
92 | int hextoint(char c) |
| |
93 | { |
| |
94 | if (c >= 'a' && c <= 'f') |
| |
95 | return 10 + c - 'a'; |
| |
96 | else if (c >= 'A' && c <= 'F') |
| |
97 | return 10 + c - 'A'; |
| |
98 | else if (c >= '0' && c <= '9') |
| |
99 | return c - '0'; |
| |
100 | else |
| |
101 | return -1; |
| |
102 | } |
| |
103 | |
| |
104 | char *trim_end(const char *str, char c) |
92 | char *trim_end(const char *str, char c) |
105 | { |
93 | { |
106 | int len; |
94 | int len; |
107 | char *s, *t; |
95 | char *s, *t; |
|