#include "error.h"
#include <sys/mman.h>
#include <fnmatch.h>
+#include "afh.h"
#include "afs.h"
#include "string.h"
return 1;
}
if (opts->mode == LS_MODE_VERBOSE) {
- HASH_TYPE asc_hash[2 * HASH_SIZE + 1];
+ char asc_hash[2 * HASH_SIZE + 1];
char *att_line, *lyrics_line, *image_line;
hash_to_asc(d->hash, asc_hash);
char afsi_buf[AFSI_SIZE];
uint32_t flags = read_u32(buf + AFTROW_FLAGS_OFFSET);
- hash = buf + AFTROW_HASH_OFFSET;
+ hash = (HASH_TYPE *)buf + AFTROW_HASH_OFFSET;
hash_to_asc(hash, asc);;
objs[AFTCOL_HASH].data = buf + AFTROW_HASH_OFFSET;
objs[AFTCOL_HASH].size = HASH_SIZE;
return ret;
}
-int com_add(int fd, int argc, const char **argv)
+int com_add(int fd, int argc, char **argv)
{
int i, ret;
struct private_add_data pad = {.fd = fd, .flags = 0};