summaryrefslogtreecommitdiff
path: root/serv.c
diff options
context:
space:
mode:
Diffstat (limited to 'serv.c')
-rw-r--r--serv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/serv.c b/serv.c
index 093cc12..3fb88ac 100644
--- a/serv.c
+++ b/serv.c
@@ -4,6 +4,9 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#include <ctype.h>
+
+#include <unistd.h>
#include <sys/types.h>
@@ -95,7 +98,7 @@ int main(int argc, char *argv[])
struct sockaddr_in addr;
char buff[1024];
int len;
- int addrlen;
+ socklen_t addrlen;
int sock_fd;
int connect_fd;