summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/common')
-rw-r--r--source4/lib/tdb/common/io.c2
1 files changed, 1 insertions, 1 deletions
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);
}