summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/socket.h b/include/socket.h
index 6f9dcab..79a8f86 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -1,3 +1,3 @@
int sock_connect(const char *host, const char *port);
-int sock_write(int sd, const char *buf, size_t len);
-int sock_readln(int sd, char *buf, size_t len);
+ssize_t sock_write(int sd, const char *buf, size_t len);
+ssize_t sock_readln(int sd, char *buf, size_t len);