projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
148c094
)
tdb2: fix arithmetic on void * pointer.
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:48:48 +0000
(22:18 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:48:48 +0000
(22:18 +1030)
ccan/tdb2/io.c
patch
|
blob
|
history
diff --git
a/ccan/tdb2/io.c
b/ccan/tdb2/io.c
index 4ed37ca2cffbeaac1c6398ac5dbf20926e6d0d83..bb3d2192829dc504a885e06176f6a2e275c2bcd8 100644
(file)
--- 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 */