From ba4b4f1c28188c02bbe6e018ea3caf335e5fdef5 Mon Sep 17 00:00:00 2001 From: "Chris D. Faulhaber" Date: Fri, 31 Dec 1999 23:08:21 +0000 Subject: Fix invalid cast Found by: bento --- editors/xenon/files/patch-ad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/xenon/files/patch-ad') 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); -- cgit v1.2.3