summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);