diff options
author | Ian C <ianc@noddybox.co.uk> | 2021-09-25 18:49:16 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2021-09-25 18:49:16 +0100 |
commit | 5784031c8874499bc3ab2d8539f15f7fec332710 (patch) | |
tree | 27250aa5a47817b5e53b2759d01ce2e6fd3205d0 /serv.c | |
parent | 0995c4defcf1daa10a2aad5a33bf6e1f1124ee1b (diff) |
Added .gitignore and fix errors on MacOS
Diffstat (limited to 'serv.c')
-rw-r--r-- | serv.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |