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:
@ -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_;
|
||||
|
Reference in New Issue
Block a user