summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-08-05 23:24:21 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-08-05 23:24:21 +0200
commitb9df9728fd7de3cc7c189a97fc5a00fc86686173 (patch)
tree7db922cd45515c5af5d252e97d32d6380dfa7c67
parentdf0a75c68f22f54f94773eb07f2f439561f0f3c2 (diff)
fix compilation warning
-rw-r--r--gre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gre.c b/gre.c
index 0515bf3..6ded69d 100644
--- a/gre.c
+++ b/gre.c
@@ -145,7 +145,7 @@ static void gre_cb(void)
{
int n;
struct sockaddr_storage src;
- size_t src_len = sizeof(src);
+ socklen_t src_len = sizeof(src);
memset(&src, 0, src_len);
n = recvfrom(sock, buf, sizeof(buf), 0, (struct sockaddr*)&src, &src_len);