summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-22Assume target platforms have strcasecmp nowHEADmasterAlan Coopersmith3-38/+1
It has been required since Unix98/SUSv2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xkbutils/-/merge_requests/7>
2024-02-03xkbutils 1.0.6xkbutils-1.0.6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-18Change sprintf calls to use snprintf insteadAlan Coopersmith2-6/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-18Remove uSetErrorFile()Alan Coopersmith4-24/+1
It was only ever called with an argument of NullString, which set the errorFile to stderr, so we'll just do that at compile time instead. Also removes NullString, which was only ever used in uSetErrorFile. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-08xkbwatch: Fix -Wincompatible-pointer-types warning (Issue #2)Alan Coopersmith1-1/+1
Fixes warning from gcc 13 that is becoming an error in gcc 14 xkbwatch.c:92:34: warning: passing argument 7 of ‘XtOpenApplication’ from incompatible pointer type [-Wincompatible-pointer-types] 92 | fallback_resources, | ^~~~~~~~~~~~~~~~~~ | | | char ** In file included from xkbwatch.c:31: .../X11/Intrinsic.h:1473:5: note: expected ‘const char **’ but argument is of type ‘char **’ 1473 | String* /* fallback_resources */, | ^~~~~~~ Closes: #2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith4-4/+4
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-12xkbutils 1.0.5xkbutils-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Use _CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith2-1/+2
Clears 38 out of 58 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-31/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2014-05-31autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-05-31Remove unused uStrCasePrefix fallback for strncasecmpAlan Coopersmith2-26/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-12-09XkbQueryExtension returns a Bool, don't use > 0 to check itAlan Coopersmith1-1/+1
We just want to know if XkbQueryExtension returned false, so ! is enough, don't need > 0 as well. Reported by cppcheck: [app/xkbutils/xkbbell.c:205]: (warning) Comparison of a boolean value using relational operator (<, >, <= or >=). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-02-10xkbutils 1.0.4xkbutils-1.0.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Declare bit to shift as unsigned to clear compiler warningAlan Coopersmith1-1/+1
"xkbvleds.c", line 343: warning: integer overflow detected: op "<<" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Add -version flags to all three commandsAlan Coopersmith6-2/+49
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Combine usage message strings/callsAlan Coopersmith2-28/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Delete more unused macros from utils.hAlan Coopersmith1-19/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove unused u*alloc functions from utils.cAlan Coopersmith4-93/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove unused uStringDup functionAlan Coopersmith2-19/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Make configure actually check for strcasecmpAlan Coopersmith2-0/+6
utils.h & utils.c had #ifdefs to check for it, and only define their fallback if HAVE_STRCASECMP was not defined, but we never defined it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove unused debug & function tracing infrastructure from utils.cAlan Coopersmith4-231/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Mark uFatalError as _X_NORETURNAlan Coopersmith2-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Add printf attributes to utils.c printing functionsAlan Coopersmith1-9/+9
Doesn't find any problems, but clears -Wmissing-format-attribute warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Declare utils.c functions as taking const char * argumentsAlan Coopersmith2-34/+34
Clears dozens of const string warnings from gcc. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-4/+6
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12unifdef CRAYAlan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove unused streq() macroAlan Coopersmith1-3/+0
LED.c:37:9: warning: macro is not used [-Wunused-macros] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove unused #ifdef notyet typedefAlan Coopersmith1-9/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Remove CVS version tagsAlan Coopersmith8-14/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-12Convert to X.Org standard coding styleAlan Coopersmith8-922/+1020
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07Fix typo in SetValues which could fail to detect a change if only ↵Jeremy Huddleston1-2/+2
width/height changed LED.c:249:25: warning: Both operands to '!=' always have the same value || curlw->core.height != curlw->core.height) { ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ LED.c:248:24: warning: Both operands to '!=' always have the same value || curlw->core.width != curlw->core.width ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon6-16/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon3-15/+15
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2010-10-30xkbutils 1.0.3xkbutils-1.0.3Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-01config: update direct dependencies for xkbvleds and xkbwatchGaetan Nadon1-2/+2
Depends on xproto through the inclusion of X.h. Depends on x11 through the inclusion of Xlib.h. Depends on Xaw through the inclusion of XawInit.h Depends on Xt through the inclusion of IntrinsicP.h Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-01config: update direct dependencies for xkbbellGaetan Nadon1-1/+1
Depends on xproto through the inclusion of Xproto.h. Depends on inputproto through the inclusion of XI.h Depends on x11 through the inclusion of Xlib.h. Does not depend on xkbfile for headers or libs. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-10-01LED.c: remove unrequired X11/Xmu includesGaetan Nadon1-2/+0
This removes a direct dependencies which was not reflected in configure.ac. Xaw privatly requires Xmu. Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-09-23config: Remove unnecessary calls from configure.acAlan Coopersmith1-10/+0
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-23config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith2-22/+4
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Enables use of platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-23config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-08-06Sun copyrights are now owned by OracleAlan Coopersmith4-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>