aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_receive.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-20 20:57:49 +0200
committerMattias Andrée <maandree@kth.se>2020-06-20 20:57:49 +0200
commitf9d0ddbf9024aa434898bb90a640cc45ce35a95f (patch)
treefa1945d8facbda91db1ec87915ba26ee7e6a1e2a /libaxl_receive.c
parentMisc. (diff)
downloadlibaxl-f9d0ddbf9024aa434898bb90a640cc45ce35a95f.tar.gz
libaxl-f9d0ddbf9024aa434898bb90a640cc45ce35a95f.tar.bz2
libaxl-f9d0ddbf9024aa434898bb90a640cc45ce35a95f.tar.xz
Add LIBAXL_SYNTHETIC_EVENT_BIT
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libaxl_receive.c')
-rw-r--r--libaxl_receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libaxl_receive.c b/libaxl_receive.c
index 227e149..b17cdc9 100644
--- a/libaxl_receive.c
+++ b/libaxl_receive.c
@@ -252,7 +252,7 @@ libaxl_receive(LIBAXL_CONTEXT *restrict ctx, union libaxl_input *restrict msgp,
}
code = *(uint8_t *)inbuf;
- code &= 0x7F; /* Synthetic events have the highest bit set. */
+ code &= ~LIBAXL_SYNTHETIC_EVENT_BIT;
if (code == LIBAXL_REPLY) {
n = (uint64_t)ntohl(*(uint32_t *)&inbuf[4]);