mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix 779: Union casting is non-portable.
git-svn-id: file:///svn/unbound/trunk@3789 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
68d0253d64
commit
5a478514ee
3 changed files with 7 additions and 12 deletions
|
|
@ -3,6 +3,7 @@
|
|||
null delete for wsaevent.
|
||||
- Fix spelling in freebind option man page text.
|
||||
- Fix windows link of ssl with crypt32.
|
||||
- Fix 779: Union casting is non-portable.
|
||||
|
||||
13 June 2016: Ralph
|
||||
- Use QTYPE=A for QNAME minimisation.
|
||||
|
|
|
|||
|
|
@ -132,14 +132,10 @@ static void (*NATIVE_BITS_CB(void (*cb)(int, short, void*)))(int, short, void*)
|
|||
#define EVFLAG_AUTO 0
|
||||
#endif
|
||||
|
||||
#define AS_EVENT_BASE(x) \
|
||||
(((union {struct ub_event_base* a; struct event_base* b;})x).b)
|
||||
#define AS_UB_EVENT_BASE(x) \
|
||||
(((union {struct event_base* a; struct ub_event_base* b;})x).b)
|
||||
#define AS_EVENT(x) \
|
||||
(((union {struct ub_event* a; struct event* b;})x).b)
|
||||
#define AS_UB_EVENT(x) \
|
||||
(((union {struct event* a; struct ub_event* b;})x).b)
|
||||
#define AS_EVENT_BASE(x) ((struct event_base*)x)
|
||||
#define AS_UB_EVENT_BASE(x) ((struct ub_event_base*)x)
|
||||
#define AS_EVENT(x) ((struct event*)x)
|
||||
#define AS_UB_EVENT(x) ((struct ub_event*)x)
|
||||
|
||||
const char* ub_event_get_version()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -144,10 +144,8 @@ struct my_event {
|
|||
struct event ev;
|
||||
};
|
||||
|
||||
#define AS_MY_EVENT_BASE(x) \
|
||||
(((union {struct ub_event_base* a; struct my_event_base* b;})x).b)
|
||||
#define AS_MY_EVENT(x) \
|
||||
(((union {struct ub_event* a; struct my_event* b;})x).b)
|
||||
#define AS_MY_EVENT_BASE(x) ((struct my_event_base*)x)
|
||||
#define AS_MY_EVENT(x) ((struct my_event*)x)
|
||||
|
||||
const char* ub_event_get_version()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue