summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2018-11-12 14:05:52 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2018-11-12 14:05:52 -0800
commit317312bd23cf5c524932c6f12319ed3eed68d981 (patch)
treeba2b4862929b56ba6fee4013d4408ac87a62277f /xhost.c
parent62bfa9d421138ec538682eb0323fa9f438d6b2c7 (diff)
Drop ancient workarounds for Cray that are no longer needed
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xhost.c')
-rw-r--r--xhost.c4
1 files 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);