From 3f15f54b9e9a14adf70060789427bfe08f8cf744 Mon Sep 17 00:00:00 2001 From: Sergey Udaltsov Date: Thu, 4 Nov 2004 19:14:48 +0000 Subject: small prerelease polish --- ChangeLog | 9 +++++++++ libxklavier/xklavier_config_i18n.c | 4 ++-- tests/Makefile.am | 4 ++-- tests/test_config.c | 2 ++ tests/test_monitor.c | 3 +-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08a213e..7d29916 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-11-04 19:00 svu + + * libxklavier/xklavier_config_i18n.c, + tests/Makefile.am, + tests/test_config.c, + tests/test_monitor.c: 64-bit compatibility patch from + James Henstridge. -Wall -Werror for tests. + + 2004-11-02 22:55 svu * libxklavier/Makefile.am, diff --git a/libxklavier/xklavier_config_i18n.c b/libxklavier/xklavier_config_i18n.c index 92fe440..e56938a 100644 --- a/libxklavier/xklavier_config_i18n.c +++ b/libxklavier/xklavier_config_i18n.c @@ -101,13 +101,13 @@ static Bool _XklGetCharset( const char **a ) char *_XklLocaleFromUtf8( const char *utf8string ) { - int len; + size_t len; iconv_t converter; static char converted[XKL_MAX_CI_DESC_LENGTH]; char *convertedStart = converted; char *utfStart = ( char * ) utf8string; - int clen = XKL_MAX_CI_DESC_LENGTH - 1; + size_t clen = XKL_MAX_CI_DESC_LENGTH - 1; const char *charset; static Bool alreadyWarned = False; diff --git a/tests/Makefile.am b/tests/Makefile.am index 70815c9..9d844da 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,7 +4,7 @@ test_config_SOURCES=test_config.c test_monitor_SOURCES=test_monitor.c -AM_CFLAGS=-I$(includedir) -I$(x_includes) -I$(top_srcdir) +AM_CFLAGS=-Wall -Werror -I$(includedir) -I$(x_includes) -I$(top_srcdir) -AM_LDFLAGS=$(top_builddir)/libxklavier/libxklavier.la -lX11 +AM_LDFLAGS=$(top_builddir)/libxklavier/libxklavier.la -L$(x_libraries) -lX11 diff --git a/tests/test_config.c b/tests/test_config.c index a91860c..ad2c4f0 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/tests/test_monitor.c b/tests/test_monitor.c index 73c86d2..8808b62 100644 --- a/tests/test_monitor.c +++ b/tests/test_monitor.c @@ -15,7 +15,7 @@ static void printUsage() printf( " -h - Show this help\n" ); } -static void dump( XklConfigRecPtr ptr ) +void dump( XklConfigRecPtr ptr ) { int i,j; char**p; @@ -87,7 +87,6 @@ int main( int argc, char * argv[] ) while (1) { - int grp; XNextEvent( dpy, &ev.core ); if ( XklFilterEvents( &ev.core ) ) XklDebug( 200, "Unknown event %d\n", ev.type ); -- cgit v1.2.1