mirror of
https://github.com/sogou/workflow.git
synced 2026-10-29 11:36:47 +08:00
Pack a union to save some bytes.
This commit is contained in:
@@ -66,11 +66,13 @@ struct __poller_node
|
||||
int state;
|
||||
int error;
|
||||
struct poller_data data;
|
||||
#pragma pack(1)
|
||||
union
|
||||
{
|
||||
struct list_head list;
|
||||
struct rb_node rb;
|
||||
};
|
||||
#pragma pack()
|
||||
char in_rbtree;
|
||||
char removed;
|
||||
int event;
|
||||
|
||||
Reference in New Issue
Block a user