diff options
| author | Felix Fietkau | 2026-03-21 03:59:28 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2026-03-21 04:01:38 +0000 |
| commit | f9b1f3ff17baeb490cc896a037f176c0240ae776 (patch) | |
| tree | 0fa2a99fc094de15895f8322065ff249cfccfc99 | |
| parent | 895f92164b665ef84ca804873ddb03fb6f7c8b37 (diff) | |
| download | libubox-master.tar.gz | |
ULOOP_ERROR_CB was accidentally renumbered because it was declared after
the internal flags. Move the flags, and preserve the bit values in order
to avoid unnecesary ABI churn
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | uloop.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -49,13 +49,13 @@ typedef void (*uloop_signal_handler)(struct uloop_signal *s); #define ULOOP_EDGE_TRIGGER (1 << 2) #define ULOOP_BLOCKING (1 << 3) -#define ULOOP_ERROR_CB (1 << 4) -#define ULOOP_PRIORITY (1 << 5) +#define ULOOP_ERROR_CB (1 << 6) +#define ULOOP_PRIORITY (1 << 7) /* internal flags */ -#define ULOOP_EVENT_BUFFERED (1 << 6) +#define ULOOP_EVENT_BUFFERED (1 << 4) #ifdef USE_KQUEUE -#define ULOOP_EDGE_DEFER (1 << 7) +#define ULOOP_EDGE_DEFER (1 << 5) #endif #define ULOOP_EVENT_MASK (ULOOP_READ | ULOOP_WRITE | ULOOP_PRIORITY) |