| 107 | } |
| 108 | |
| 109 | char *hash_to_hex_algop(const unsigned char *hash, const struct git_hash_algo *algop) |
| 110 | { |
| 111 | static int bufno; |
| 112 | static char hexbuffer[4][GIT_MAX_HEXSZ + 1]; |
| 113 | bufno = (bufno + 1) % ARRAY_SIZE(hexbuffer); |
| 114 | return hash_to_hex_algop_r(hexbuffer[bufno], hash, algop); |
| 115 | } |
| 116 | |
| 117 | char *hash_to_hex(const unsigned char *hash) |
| 118 | { |