summaryrefslogtreecommitdiffstats
path: root/sock_stuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'sock_stuff.h')
-rw-r--r--sock_stuff.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/sock_stuff.h b/sock_stuff.h
index b9766ba..190f7e1 100644
--- a/sock_stuff.h
+++ b/sock_stuff.h
@@ -3,11 +3,10 @@
#include <stdint.h>
-enum fd_mode
-{
- FD_READ,
- FD_WRITE,
- FD_EXCEPT
+enum fd_mode {
+ FD_READ,
+ FD_WRITE,
+ FD_EXCEPT
};
typedef enum fd_mode fd_mode;
@@ -19,11 +18,11 @@ int check_fd(int fd, fd_mode fdm, unsigned int timeout);
int recv_buf(int fd, void *data, size_t size);
int peek_buf(int fd, void *data, size_t size);
-int recv_buf_timeout(int fd, void *data, size_t size, int flags, unsigned int timeout);
+int recv_buf_timeout(int fd, void *data, size_t size, int flags,
+ unsigned int timeout);
int send_buf(int fd, void *data, size_t size);
void sock_stuff_set_verbose(int level);
-#endif /* __SOCK_STUFF_H */
-
+#endif /* __SOCK_STUFF_H */