diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-14 00:02:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-14 00:02:21 -0700 |
commit | 4ffd1c45709bf8aa41e57d23a5241c4b4817d318 (patch) | |
tree | fcd486d7b5e6c0a005b6429f1cf45fbdf1ee9553 /xhost.c | |
parent | e100ad533203fdc0d80078835c557f1bc47954bd (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |