From 523445cdaa118fd9cb61d63d1a71a0762b98cdcf Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 7 Nov 2007 07:13:44 +0100 Subject: r25893: Fix ldb, tdb builds (and one warning). Jeremy. (This used to be commit 52b26645b04a9c5fb70e7b869b60c9157f821d50) --- source4/lib/tdb/common/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/tdb/common') diff --git a/source4/lib/tdb/common/io.c b/source4/lib/tdb/common/io.c index c963e66ad4..8ab0768883 100644 --- a/source4/lib/tdb/common/io.c +++ b/source4/lib/tdb/common/io.c @@ -96,7 +96,7 @@ static int tdb_write(struct tdb_context *tdb, tdb_off_t off, "%d of %d bytes at %d, trying once more\n", (int)written, len, off)); errno = ENOSPC; - written = pwrite(tdb->fd, (void *)((char *)buf+written), + written = pwrite(tdb->fd, (const void *)((const char *)buf+written), len-written, off+written); } -- cgit