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 <[email protected]>
---
 xhost.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);
-- 
1.7.9.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to