summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
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);