summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-06-14 00:02:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-06-14 00:02:21 -0700
commit4ffd1c45709bf8aa41e57d23a5241c4b4817d318 (patch)
treefcd486d7b5e6c0a005b6429f1cf45fbdf1ee9553 /xhost.c
parente100ad533203fdc0d80078835c557f1bc47954bd (diff)
Fix const warning for FamilyLocalHost empty address string
xhost.c: In function ‘change_host’: xhost.c:452:13: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xhost.c')
-rw-r--r--xhost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xhost.c b/xhost.c
index 576513a..a67d136 100644
--- a/xhost.c
+++ b/xhost.c
@@ -448,8 +448,9 @@ change_host(Display *dpy, char *name, Bool add)
}
#endif
if (family == FamilyLocalHost) {
+ char empty[] = "";
ha.length = 0;
- ha.address = "";
+ ha.address = empty;
ha.family = family;
if (add)
XAddHost(dpy, &ha);