summaryrefslogtreecommitdiff
path: root/serv.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-09-25 18:49:16 +0100
committerIan C <ianc@noddybox.co.uk>2021-09-25 18:49:16 +0100
commit5784031c8874499bc3ab2d8539f15f7fec332710 (patch)
tree27250aa5a47817b5e53b2759d01ce2e6fd3205d0 /serv.c
parent0995c4defcf1daa10a2aad5a33bf6e1f1124ee1b (diff)
Added .gitignore and fix errors on MacOS
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;