From 317312bd23cf5c524932c6f12319ed3eed68d981 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 12 Nov 2018 14:05:52 -0800 Subject: Drop ancient workarounds for Cray that are no longer needed Signed-off-by: Alan Coopersmith --- xhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xhost.c b/xhost.c index 389f896..6398506 100644 --- a/xhost.c +++ b/xhost.c @@ -519,8 +519,8 @@ change_host(Display *dpy, char *name, Bool add) #endif ) { ha.family = FamilyInternet; - ha.length = 4; /* but for Cray would be sizeof(addr.s_addr) */ - ha.address = (char *)&addr; /* but for Cray would be &addr.s_addr */ + ha.length = sizeof(addr.s_addr); + ha.address = (char *) &addr.s_addr; if (add) { XAddHost (dpy, &ha); printf ("%s %s\n", name, add_msg); -- cgit v1.2.3