aboutsummaryrefslogtreecommitdiffstats
path: root/service/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'service/src/util.h')
-rw-r--r--service/src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/src/util.h b/service/src/util.h
index 3496461..eaef14f 100644
--- a/service/src/util.h
+++ b/service/src/util.h
@@ -5,6 +5,7 @@
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
+#include <errno.h>
#define ARRSIZE(x) (sizeof(x)/sizeof((x)[0]))
#define MIN(x,y) ((x) > (y) ? (y) : (x))
@@ -12,7 +13,7 @@
#define NULLFREE(p) do { free(p); p = NULL; } while (0)
-#define MHASHLEN 32
+#define MHASHLEN 40
enum { FAIL = 0, OK = 1 };
@@ -21,6 +22,7 @@ void* die(const char *fmtstr, ...);
char* aprintf(const char *fmtstr, ...);
const char* mhash(const char *filename, int len);
+int checkalph(const char *str, const char *alph);
void freadstr(FILE *f, char **dst);
void fputstr(FILE *f, char *s);