From f2a1247955c1b376469a5e37c9583a1bbfd4dc61 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 21 Mar 2011 22:18:48 +1030 Subject: [PATCH 1/1] tdb2: fix arithmetic on void * pointer. --- ccan/tdb2/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/tdb2/io.c b/ccan/tdb2/io.c index 4ed37ca2..bb3d2192 100644 --- a/ccan/tdb2/io.c +++ b/ccan/tdb2/io.c @@ -342,7 +342,7 @@ enum TDB_ERROR tdb_write_off(struct tdb_context *tdb, static void *_tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t len, unsigned int prefix) { - void *buf; + unsigned char *buf; enum TDB_ERROR ecode; /* some systems don't like zero length malloc */ -- 2.39.2