diff options
author | jedgar <jedgar@FreeBSD.org> | 1999-12-31 23:08:21 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 1999-12-31 23:08:21 +0000 |
commit | db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941 (patch) | |
tree | 49fe3f597675b8bee2a1922585f0a9a9492087fb /editors | |
parent | e482588d26360d25a03d6869bba0a172660ca18c (diff) | |
download | FreeBSD-ports-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.zip FreeBSD-ports-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.tar.gz |
Fix invalid cast
Found by: bento
Diffstat (limited to 'editors')
-rw-r--r-- | editors/xenon/files/patch-ad | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/xenon/files/patch-ad b/editors/xenon/files/patch-ad index 8c1fb44..bd5e5c5 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); |