1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

s3-includes: fixed CONST_DISCARD() to actually discard const

a cast is not enough

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell
2011-03-24 15:40:45 +11:00
parent aaae4123b9
commit 37261928be

View File

@ -752,7 +752,7 @@ ssize_t readahead(int fd, off64_t offset, size_t count);
#endif
#ifndef CONST_DISCARD
#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr)))
#define CONST_DISCARD(type, ptr) discard_const_p(type, ptr)
#endif
void dump_core(void) _NORETURN_;