diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-02 11:09:52 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-03-02 11:09:52 +0100 |
commit | 2f5aa3b5097db7a0c475ab73e487a2af30a59b99 (patch) | |
tree | 7c069a770f4dae1f7ca2a65ae946c40d3b4572ad /src/core | |
parent | 76290729b71debd8f3b442bf76c4599661815562 (diff) | |
download | weechat-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.h | 6 |
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); |