summaryrefslogtreecommitdiff
path: root/handler.c
AgeCommit message (Collapse)Author
2023-02-06Ensure all *.c files include config.h before any other headersAlan Coopersmith
Makes sure that any flags set in config.h that affect system headers are applied equally across all source files. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-02Clear -Wredundant-decls warnings from gcc 7.3Alan Coopersmith
comm.c:55:15: warning: redundant redeclaration of ‘CM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:339:15: note: previous declaration of ‘CM_entries’ was here extern Widget CM_entries[NUM_CM_ENTRIES]; ^~~~~~~~~~ comm.c:55:43: warning: redundant redeclaration of ‘TM_entries’ [-Wredundant-decls] extern Widget CM_entries[NUM_CM_ENTRIES], TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ In file included from comm.c:46:0: editresP.h:343:15: note: previous declaration of ‘TM_entries’ was here extern Widget TM_entries[NUM_TM_ENTRIES]; ^~~~~~~~~~ handler.c:502:16: warning: redundant redeclaration of ‘do_get_values’ [-Wredundant-decls] extern Boolean do_get_values; ^~~~~~~~~~~~~ In file included from handler.c:40:0: editresP.h:334:16: note: previous declaration of ‘do_get_values’ was here extern Boolean do_get_values; ^~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-02Clear 208 out of 210 -Wdiscarded-qualifiers warnings from gcc 7.3Alan Coopersmith
Depends on building with a libXt version that defines String as a const char * if _CONST_X_STRING is defined. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Strip trailing whitespaceAlan Coopersmith
'git diff -w' shows no changes for this commit Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Fix -Wsign-compare warningsAlan Coopersmith
actions.c:291:21: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for ( i = 0 ; i < num_table; i++ ) ~ ^ ~~~~~~~~~ actions.c:299:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < num_table; ) { ~ ^ ~~~~~~~~~ actions.c:302:8: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare] if (i == (num_table - 1)) ~ ^ ~~~~~~~~~~~~~ actions.c:304:13: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] else if (i < num_table) ~ ^ ~~~~~~~~~ geometry.c:150:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~ geometry.c:380:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:401:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:423:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ geometry.c:428:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_flash_widgets; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ handler.c:475:13: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] if (len > malloc_size) { ~~~ ^ ~~~~~~~~~~~ handler.c:476:58: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] malloc_string = XtRealloc(malloc_string, sizeof(char) * len); ~ ^~~ handler.c:477:16: warning: implicit conversion changes signedness: 'int' to 'Cardinal' (aka 'unsigned int') [-Wsign-conversion] malloc_size = len; ~ ^~~ utils.c:167:37: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (node = top_node, i = 1 ; i < number; i++) { ~ ^ ~~~~~~ utils.c:170:16: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (j = 0; j < node->num_children; j++) { ~ ^ ~~~~~~~~~~~~~~~~~~ utils.c:215:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~ utils.c:787:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top_node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~ wtree.c:129:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~ wtree.c:194:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < info->num_nodes; i++) { ~ ^ ~~~~~~~~~~~~~~~ wtree.c:216:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~ wtree.c:270:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < top->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~ wtree.c:339:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < num_active_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~ wtree.c:386:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:446:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:478:16: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) { ~ ^ ~~~~~~~~~~~~~~~~~~ wtree.c:607:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < tree_info->num_nodes; i++) ~ ^ ~~~~~~~~~~~~~~~~~~~~ wtree.c:686:19: warning: comparison of integers of different signs: 'int' and 'Cardinal' (aka 'unsigned int') [-Wsign-compare] for (i = 0; i < node->num_children; i++) ~ ^ ~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-09Replace remaining sprintf calls with snprintfAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-12-28Remove Xorg/XFree86 CVS/RCS id tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-12Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
2004-04-23Merging XORG-CURRENT into trunkxprint_packagertest_20041217_basexprint_packagertest_20041125_baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_99_1XORG-6_8_2XORG-6_8_1_904XORG-6_8_1_903XORG-6_8_1_902XORG-6_8_1_901XORG-6_8_1XORG-6_8_0XORG-6_7_99_904XORG-6_7_99_903XORG-6_7_99_902XORG-6_7_99_901XORG-6_7_99_2XORG-6_7_99_1XACE-SELINUX-MERGExprint_packagertest_20041217xprint_packagertest_20041125lg3d-masterlg3d-eventlg3d-dev-0-7-1lg3d-dev-0-7-0lg3d-dev-0-6-latestlg3d-dev-0-6-2lg3d-dev-0-6-1-latestlg3d-dev-0-6-1-currentlg3d-dev-0-6-1-1lg3d-dev-0-6-1lg3dXORG-6_8-branchCOMPOSITEWRAPEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330Kaleb Keithley
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley
2003-11-14R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley