summaryrefslogtreecommitdiff
path: root/xgamma.c
AgeCommit message (Collapse)Author
2022-11-03Resolve -Wdouble-promotion warnings from clangAlan Coopersmith
Use 'f' suffix on const to match float type for gamma values. Add casts to double to make conversion explicit when passing to printf() that requires double instead of float. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Add -version option to print program versionAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Print which option was in error along with usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Combine usage message fprintfs into a single callAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Fix const char warnings in calls to isabbreviation()Alan Coopersmith
gcc warned on every call: xgamma.c: In function ‘main’: xgamma.c:107:6: warning: passing argument 1 of ‘isabbreviation’ discards ‘const’ qualifier from pointer target type [enabled by default] if (isabbreviation ("-display", arg, 1)) { ^ xgamma.c:70:1: note: expected ‘char *’ but argument is of type ‘const char *’ isabbreviation(char *arg, char *s, size_t minslen) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Fix size/sign conversion warnings in isabbreviation()Alan Coopersmith
clang said: xgamma.c:85:26: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] if (strncmp (arg, s, slen) == 0) return (True); ~~~~~~~ ^~~~ xgamma.c:78:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] arglen = strlen (arg); ~ ^~~~~~~~~~~~ xgamma.c:79:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] slen = strlen (s); ~ ^~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-24Add noreturn attribute to Syntax functionAlan Coopersmith
Suggested by clang: xgamma.c:48:1: warning: function 'Syntax' could be declared with attribute 'noreturn' [-Wmissing-noreturn] { Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-08Purge CVS version tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-21Correct make distcheck and sparse warnings.Paulo Cesar Pereira de Andrade
2004-04-23Merging XORG-CURRENT into trunkxprint_packagertest_20041217_basexprint_packagertest_20041125_basesco_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-MERGExprint_packagertest_20041217xprint_packagertest_20041125sco_port_updatelg3d-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-14Initial revisionXORG-RELEASE-1-BASEXEVIE-MERGEXEVIE-BASEXORG-STABLEXINERAMA_2XEVIEKaleb Keithley