summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-06-15BSD MakefileobsdMatthieu Herrb
2023-02-11Add -help optionHEADmasterAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-03xset 1.2.5xset-1.2.5Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-22configure: Make xf86misc support disabled by defaultAlan Coopersmith
Require --with-xf86misc to enable it. The server side of the XF86-Misc extension was removed in the xserver-1.6.0 release in 2008, so this code is unusable on most systems now. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Use C99 designated struct initializersAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13set_pixels: Mark pixels parameter as constAlan Coopersmith
As suggested by cppcheck: xset.c:1145:41: style: Parameter 'pixels' can be declared with const [constParameter] set_pixels(Display *dpy, unsigned long *pixels, caddr_t * colors, ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Remove unnecessary check for NULL pointer before calling free()Alan Coopersmith
Resolves cppcheck warning: xset.c:996:9: style: Condition 'directoryList' is always true [knownConditionTrueFalse] if (directoryList) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Remove unnecessary castsAlan Coopersmith
These were needed for pre-C89 systems that took char * arguments instead of void * arguments, but aren't needed for C89 & later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Variable scope reduction as recommended by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Use the real name of the DPMS extension in messages & man pageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09xset 1.2.4xset-1.2.4Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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 Hutterer
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>
2015-05-07Include unistd.h for usleep() if HAVE_USLEEPJon TURNEY
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: David Macek <david.macek.0@gmail.com>
2014-06-03autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-03configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-18Fix one last warning about usage() format string.Matthieu Herrb
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-08xset 1.2.3xset-1.2.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Pass buf size to on_or_off instead of just assuming it is big enoughAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Add -version flagAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Fix integer sign/size conversion warnings from clangAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Add printf attribute to usage function and fix warnings it causesAlan Coopersmith
gcc suggested it: xset.c: In function ‘usage’: xset.c:1577:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wmissing-format-attribute] But adding it unveiled many complaints about extra trailing NULL args from before usage took a variable number of arguments: xset.c:186:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:193:2: warning: too many arguments for format [-Wformat-extra-args] xset.c:362:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:370:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:376:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:382:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:388:3: warning: too many arguments for format [-Wformat-extra-args] xset.c:402:7: warning: too many arguments for format [-Wformat-extra-args] xset.c:425:7: warning: too many arguments for format [-Wformat-extra-args] xset.c:542:4: warning: too many arguments for format [-Wformat-extra-args] xset.c:735:3: warning: too many arguments for format [-Wformat-extra-args] so those were deleted. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Fix gcc warnings about discarded const qualifiersAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-20Combine error message stringsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-20Combine usage message stringsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-08Drop usleep fallbacks for ancient OS versionsAlan Coopersmith
Unix 98 requires usleep() so assume most supported non-Win32 platforms have it and don't need old workarounds any more. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-11-05Remove unneeded include of windows.h on WIN32Jon TURNEY
Remove unneeded include of windows.h on WIN32, along with an attempt at the needed wrapping, which is all done properly by Xwindows.h (This include was also under a DPMSExtension define, for some strange reason) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2011-07-28xset 1.2.2xset-1.2.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-07-18Remove direct call to Solaris nanosleep system callAlan Coopersmith
Attempted to workaround nanosleep() being only in POSIX realtime extensions library, but both usleep() & nanosleep() are in libc now, so not useful anymore, nor was it ever officially supported. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-07-18Mark error() & usage() functions as _X_NORETURNAlan Coopersmith
Requires xproto >= 7.0.17 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-07-18Give better error for "xset dpms force" without argumentAlan Coopersmith
Changes from "xset: unknown option force" to "xset: missing argument to dpms force" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-01-28Print pixel colors in hex not decimalEitan Adler
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove unrequired AC_SUBST([*_LIBS])Gaetan Nadon
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove unrequired AC_SUBST([*_CFLAGS])Gaetan Nadon
This macro is called by PKG_CHECK_MODULES Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-11-10xset 1.2.1xset-1.2.1Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09Strip trailing whitespaceAlan Coopersmith
Generated via: perl -i -p -e 's{\s+$}{\n}' * Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09Restore man page copyright accidentally removed in ce3f6a73c2beefAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith
Regroup AC statements under the Autoconf initialization section. Regroup AM sttaements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: update AC_PREREQ statement to 2.60Gaetan Nadon
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> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>