diff options
author | jedgar <jedgar@FreeBSD.org> | 2000-01-01 07:08:21 +0800 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2000-01-01 07:08:21 +0800 |
commit | db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941 (patch) | |
tree | 49fe3f597675b8bee2a1922585f0a9a9492087fb /editors/xenon | |
parent | e482588d26360d25a03d6869bba0a172660ca18c (diff) | |
download | freebsd-ports-graphics-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.tar.gz freebsd-ports-graphics-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.tar.zst freebsd-ports-graphics-db1ed273dd90f16a5dd8d74dc9d4c6a760a0c941.zip |
Fix invalid cast
Found by: bento
Diffstat (limited to 'editors/xenon')
-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 8c1fb440018..bd5e5c5cf9f 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); |