udp.c: Add explicit cast to muffle bogus Clang warning.
[secnet] / udp.c
diff --git a/udp.c b/udp.c
index 9be56e1..ee38d51 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -269,7 +269,7 @@ static bool_t record_socket_gotaddr(struct udpcommon *uc, struct udpsock *us,
     socklen_t salen=sizeof(us->addr);
     int r=getsockname(us->fd,&us->addr.sa,&salen);
     if (r) FAIL("getsockname()");
-    if (salen>sizeof(us->addr)) { errno=0; FAIL("getsockname() length"); }
+    if ((size_t)salen>sizeof(us->addr)) { errno=0; FAIL("getsockname() length"); }
     return True;
 
  failed: