diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-23 08:45:48 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-23 08:45:48 -0800 |
commit | a9218c958e992adb727ea5fe45cb04f9ba611de1 (patch) | |
tree | a8bb84c6dc73e39860f0bf7518b7d8a1a78833b7 /xhost.c | |
parent | a3f0c2a060f30259dc3830ea8165be15f2aeae75 (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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]; |