From 156fbce402cba888510e3c0d037e4a25892bf5a7 Mon Sep 17 00:00:00 2001 From: sleepycity <73865773+sleepycity@users.noreply.github.com> Date: Tue, 3 Nov 2020 13:35:50 +0800 Subject: [PATCH] f f --- a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a.c b/a.c index b01fe53..2d006b7 100644 --- a/a.c +++ b/a.c @@ -16,7 +16,7 @@ int main(int argc, char *argv[]) struct sockaddr_in dest; /* socket info about the machine connecting to us */ struct sockaddr_in serv; /* socket info about our server */ int mysocket; /* socket used to listen for incoming connections */ - socklen_t socksize = sizeof(struct sockaddr_in); + socklen_t socksize = sizeof(struct sockaddr_i memset(&serv, 0, sizeof(serv)); /* zero the struct before filling the fields */ serv.sin_family = AF_INET; /* set the type of connection to TCP/IP */ @@ -42,4 +42,4 @@ int main(int argc, char *argv[]) close(mysocket); return EXIT_SUCCESS; -} \ No newline at end of file +}