aboutsummaryrefslogtreecommitdiffstats
path: root/editors/xenon
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2000-01-01 07:08:21 +0800
committerjedgar <jedgar@FreeBSD.org>2000-01-01 07:08:21 +0800
commitdb1ed273dd90f16a5dd8d74dc9d4c6a760a0c941 (patch)
tree49fe3f597675b8bee2a1922585f0a9a9492087fb /editors/xenon
parente482588d26360d25a03d6869bba0a172660ca18c (diff)
downloadfreebsd-ports-gnome-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.tar.gz
freebsd-ports-gnome-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.tar.zst
freebsd-ports-gnome-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.zip
Fix invalid cast
Found by: bento
Diffstat (limited to 'editors/xenon')
-rw-r--r--editors/xenon/files/patch-ad2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/xenon/files/patch-ad b/editors/xenon/files/patch-ad
index 8c1fb4400185..bd5e5c5cf9f7 100644
--- a/editors/xenon/files/patch-ad
+++ b/editors/xenon/files/patch-ad
@@ -5,7 +5,7 @@
gLocalIPAddr = 0;
- if (getsockname(ConnectionNumber(gDisplay), &saddr, &len) != -1)
-+ if (getsockname(ConnectionNumber(gDisplay), &saddr, (int *)&len) != -1)
++ if (getsockname(ConnectionNumber(gDisplay), &saddr, (socklen_t *)&len) != -1)
if (saddr.sa_family == AF_INET)
gLocalIPAddr = ntohl(((sockaddr_in*)&saddr)->sin_addr.s_addr);