summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_config.c3
-rw-r--r--tests/test_monitor.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_config.c b/tests/test_config.c
index 2121667..a91860c 100644
--- a/tests/test_config.c
+++ b/tests/test_config.c
@@ -50,6 +50,7 @@ int main( int argc, char * const argv[] )
const char* options = NULL;
int debugLevel = 0;
int binary = 0;
+ Display *dpy;
while (1)
{
@@ -96,7 +97,7 @@ int main( int argc, char * const argv[] )
exit( 0 );
}
- Display* dpy = XOpenDisplay( NULL );
+ dpy = XOpenDisplay( NULL );
if ( dpy == NULL )
{
fprintf( stderr, "Could not open display\n" );
diff --git a/tests/test_monitor.c b/tests/test_monitor.c
index 472e07c..73c86d2 100644
--- a/tests/test_monitor.c
+++ b/tests/test_monitor.c
@@ -42,6 +42,7 @@ int main( int argc, char * argv[] )
int c;
int debugLevel = 0;
XkbEvent ev;
+ Display* dpy;
while (1)
{
@@ -63,7 +64,7 @@ int main( int argc, char * argv[] )
}
}
- Display* dpy = XOpenDisplay( NULL );
+ dpy = XOpenDisplay( NULL );
if ( dpy == NULL )
{
fprintf( stderr, "Could not open display\n" );