openbsd-ports/x11/gnome/libxklavier/patches/patch-tests_test_config_c
marcm bae0e34e39 Update to Gnome 2.8 (.1).
Work done primarily by Francois Briere, thanks Francois.
2004-12-10 20:36:42 +00:00

21 lines
513 B
Plaintext

--- tests/test_config.c.orig Wed Dec 1 21:22:17 2004
+++ tests/test_config.c Wed Dec 1 21:23:00 2004
@@ -6,6 +6,8 @@
enum { ACTION_NONE, ACTION_GET, ACTION_SET };
+Display* dpy;
+
static void printUsage()
{
printf( "Usage: test_config (-g)|(-s -m <model> -l <layouts> -o <options>)|(-h)(-d <debugLevel>)\n" );
@@ -89,7 +91,7 @@
exit( 0 );
}
- Display* dpy = XOpenDisplay( NULL );
+ dpy = XOpenDisplay( NULL );
if ( dpy == NULL )
{
fprintf( stderr, "Could not open display\n" );