summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2019-03-02 11:09:52 +0100
committerSébastien Helleu <flashcode@flashtux.org>2019-03-02 11:09:52 +0100
commit2f5aa3b5097db7a0c475ab73e487a2af30a59b99 (patch)
tree7c069a770f4dae1f7ca2a65ae946c40d3b4572ad /src/core
parent76290729b71debd8f3b442bf76c4599661815562 (diff)
downloadweechat-2f5aa3b5097db7a0c475ab73e487a2af30a59b99.zip
core: use bitwise shift operator to define flag constants
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hook/wee-hook-fd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hook/wee-hook-fd.h b/src/core/hook/wee-hook-fd.h
index c517ebcd7..13ef57fb0 100644
--- a/src/core/hook/wee-hook-fd.h
+++ b/src/core/hook/wee-hook-fd.h
@@ -26,9 +26,9 @@ struct t_infolist_item;
#define HOOK_FD(hook, var) (((struct t_hook_fd *)hook->hook_data)->var)
/* flags for fd hooks */
-#define HOOK_FD_FLAG_READ 1
-#define HOOK_FD_FLAG_WRITE 2
-#define HOOK_FD_FLAG_EXCEPTION 4
+#define HOOK_FD_FLAG_READ (1 << 0)
+#define HOOK_FD_FLAG_WRITE (1 << 1)
+#define HOOK_FD_FLAG_EXCEPTION (1 << 2)
typedef int (t_hook_callback_fd)(const void *pointer, void *data, int fd);