summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Udaltsov <svu@gnome.org>2004-10-10 22:38:18 +0000
committerSergey Udaltsov <svu@gnome.org>2004-10-10 22:38:18 +0000
commit67c41646df4c7eacbf3aa02a019a9b7a01a2f326 (patch)
treef1b051771916510d09c8dc643f13866e66eeac66 /tests
parent2e261677cbf1bff65b334cd12fb2ae4342a6b8da (diff)
downloadlibxklavier-67c41646df4c7eacbf3aa02a019a9b7a01a2f326.tar.gz
The revolution is on. The whole description is not compiled on the client side - nothing on the server side
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" );