From 4ffd1c45709bf8aa41e57d23a5241c4b4817d318 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 14 Jun 2013 00:02:21 -0700 Subject: Fix const warning for FamilyLocalHost empty address string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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); -- cgit v1.2.3