From 9a1b2fbdc9f319aaf57a79f8e6ce7d5e6a3ecaa6 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 00:52:09 +0200 Subject: 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 --- corking.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'corking.h') diff --git a/corking.h b/corking.h index b240595..fb4483c 100644 --- a/corking.h +++ b/corking.h @@ -1,11 +1,13 @@ #ifndef CORKING_H #define CORKING_H +#include + 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 */ -- cgit v1.2.3-54-g00ecf