diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 00:52:09 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 00:52:09 +0200 |
commit | 9a1b2fbdc9f319aaf57a79f8e6ce7d5e6a3ecaa6 (patch) | |
tree | 96698df2ff61b7f1786e876e9785ca207d0f4c83 /corking.h | |
parent | e70f1cf60341251042e071e37fbf7cea1f61b8a6 (diff) |
corking: use bool instead of int
We have a boolen condition, so use bool instead of doing stupid
things with ints.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'corking.h')
-rw-r--r-- | corking.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,11 +1,13 @@ #ifndef CORKING_H #define CORKING_H +#include <stdbool.h> + extern void set_tcp_cork(int fd); extern void set_tcp_uncork(int fd); extern void set_udp_cork(int fd); extern void set_udp_uncork(int fd); -extern void set_sock_cork(int fd, int udp); -extern void set_sock_uncork(int fd, int udp); +extern void set_sock_cork(int fd, bool is_udp); +extern void set_sock_uncork(int fd, bool is_udp); #endif /* CORKING_H */ |