diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-06 23:09:31 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-06 23:09:31 -0800 |
commit | 99fd77f4aeb3bb61611aad43ba7b6c824dd71834 (patch) | |
tree | 26e22d3f0877c6ec469464197e989c4eb7e2e183 /source3/lib | |
parent | 3809490dd0ceb902c002bfeff09e6c04946e1a0c (diff) | |
download | samba-99fd77f4aeb3bb61611aad43ba7b6c824dd71834.tar.gz samba-99fd77f4aeb3bb61611aad43ba7b6c824dd71834.tar.bz2 samba-99fd77f4aeb3bb61611aad43ba7b6c824dd71834.zip |
Fix const warning.
Jeremy.
(This used to be commit ecc2555197860ae56726724ec824fc149d2d831c)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/tdb/common/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tdb/common/io.c b/source3/lib/tdb/common/io.c index c963e66ad4..8ab0768883 100644 --- a/source3/lib/tdb/common/io.c +++ b/source3/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); } |