summaryrefslogtreecommitdiff
path: root/xhost.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 08:45:48 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 08:45:48 -0800
commita9218c958e992adb727ea5fe45cb04f9ba611de1 (patch)
treea8bb84c6dc73e39860f0bf7518b7d8a1a78833b7 /xhost.c
parenta3f0c2a060f30259dc3830ea8165be15f2aeae75 (diff)
Move dpy declaration from static to main() function
Fixes gcc warnings: xhost.c:290: warning: declaration of 'dpy' shadows a global declaration xhost.c:160: warning: shadowed declaration is here xhost.c:839: warning: declaration of 'dpy' shadows a global declaration xhost.c:160: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xhost.c')
-rw-r--r--xhost.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xhost.c b/xhost.c
index 558d6da..abbfcc1 100644
--- a/xhost.c
+++ b/xhost.c
@@ -157,8 +157,6 @@ XFamily(int af)
}
#endif /* NEEDSOCKETS */
-static Display *dpy;
-
int
main(int argc, char *argv[])
{
@@ -168,6 +166,7 @@ main(int argc, char *argv[])
int nfailed = 0;
XHostAddress *list;
Bool enabled = False;
+ Display *dpy;
ProgramName = argv[0];