diff options
author | Tharre <tharre3@gmail.com> | 2016-10-31 22:31:04 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2016-10-31 22:31:04 +0100 |
commit | 6b86ecb97dc5c49993a34092a8edc199201a2056 (patch) | |
tree | 34f4f046aa817152b49fb0fbff42a1375b4b1e41 /src/util.h | |
parent | 75bf720347983547c21228df71b80a0409a32e28 (diff) | |
download | redo-6b86ecb97dc5c49993a34092a8edc199201a2056.tar.gz redo-6b86ecb97dc5c49993a34092a8edc199201a2056.tar.xz redo-6b86ecb97dc5c49993a34092a8edc199201a2056.zip |
Move utility functions to util.c
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,11 +10,15 @@ #define __RUTIL_H__ #include <stddef.h> +#include <stdio.h> extern void __attribute__((noreturn)) die_(const char *err, ...); extern void *xmalloc(size_t size); extern void *xrealloc(void *ptr, size_t size); extern char *xstrdup(const char *str); extern char *concat(size_t count, ...); +extern unsigned char *hash_file(FILE *fp); +extern void sha1_to_hex(const unsigned char *sha1, char *buf); +extern void hex_to_sha1(const char *s, unsigned char *sha1); #endif |