1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

Fix const warning.

Jeremy.
(This used to be commit ecc2555197860ae56726724ec824fc149d2d831c)
This commit is contained in:
Jeremy Allison 2007-11-06 23:09:31 -08:00
parent 3809490dd0
commit 99fd77f4ae

View File

@ -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);
}