summaryrefslogtreecommitdiff
path: root/xcmsdb.c
AgeCommit message (Collapse)AuthorFilesLines
2024-04-27Variable scope reduction as suggested by cppcheckAlan Coopersmith1-4/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xcmsdb/-/merge_requests/5>
2022-04-30Remove unnecessary casts and make allocation failure checks more consistentAlan Coopersmith1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-30Adopt X.Org standard coding styleAlan Coopersmith1-552/+572
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Fix -Wsign-compare warnings in PrintTableType1()Alan Coopersmith1-1/+1
xcmsdb.c: In function ‘PrintTableType1’: xcmsdb.c:299:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ xcmsdb.c:307:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ xcmsdb.c:315:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (count = 0; count < max_index+1; count++) { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith1-1/+1
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-05_XcmsGetProperty: don't deal with uninitialized values, fail insteadErkki Seppälä1-8/+11
Import commit 502d414118c97d35a44f8e295709682022876331 from the master copy of this code in libX11. Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-01-05Only use results from GetWindowProperty if it returned SuccessAlan Coopersmith1-13/+13
Since Xlib prior to 1.6 didn't always clear values on failure, don't assume they're safe to use unless we succeeded. Reported by Oracle Parfait 1.5.1: Error: Uninitialised memory Uninitialised memory variable (CWE 457): Possible access to uninitialised memory variable 'ret_format' at line 743 of app/xcmsdb/xcmsdb.c in function 'RemoveSCCData'. ret_format allocated at line 733. at line 757 of app/xcmsdb/xcmsdb.c in function 'RemoveSCCData'. ret_format allocated at line 733. Uninitialised memory variable (CWE 457): Possible access to uninitialised memory variable 'ret_prop' at line 748 of app/xcmsdb/xcmsdb.c in function 'RemoveSCCData'. ret_prop allocated at line 731. at line 762 of app/xcmsdb/xcmsdb.c in function 'RemoveSCCData'. ret_prop allocated at line 731. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2014-12-31Strip trailing whitespace from source filesAlan Coopersmith1-37/+37
git ls-files | xargs gsed -i 's/[ \t]*$//' Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-02Fix const char * warningsAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
2013-11-26Add -version option to print program versionAlan Coopersmith1-0/+8
Adds both -version and previously undocumented -help to man page Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Print which option was in error along with usage messageAlan Coopersmith1-7/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Combine usage message stringsAlan Coopersmith1-15/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07Coding style cleanup to appease static analyzerJeremy Huddleston1-5/+2
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2009-01-19Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade1-1/+1
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 trunksco_port_update-baserel-0-6-1lg3d-rel-0-7-0lg3d-rel-0-6-2lg3d-baseXORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_16XORG-6_8_99_15XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-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-MERGEXORG-6_8-branchEgbert Eich1-1/+1
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich1-1/+1
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0Egbert Eich1-1/+1
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich1-1/+1
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich1-1/+1
2003-11-14XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley1-57/+39
2003-11-14R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley1-0/+888