summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-02-11Add -help optionHEADmasterAlan Coopersmith1-4/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-03xset 1.2.5xset-1.2.5Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-22configure: Make xf86misc support disabled by defaultAlan Coopersmith1-2/+2
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 Coopersmith1-24/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13set_pixels: Mark pixels parameter as constAlan Coopersmith1-3/+3
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 Coopersmith1-2/+1
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 Coopersmith1-14/+11
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 Coopersmith1-55/+50
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Fix 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>
2021-12-07Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-07gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Use the real name of the DPMS extension in messages & man pageAlan Coopersmith2-8/+11
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-25/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09xset 1.2.4xset-1.2.4Alan Coopersmith1-1/+1
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>
2015-05-07Include unistd.h for usleep() if HAVE_USLEEPJon TURNEY1-0/+3
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 Coopersmith1-2/+3
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 Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-08-18Fix one last warning about usage() format string.Matthieu Herrb1-2/+1
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 Coopersmith1-1/+1
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 Coopersmith1-9/+11
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Add -version flagAlan Coopersmith2-1/+13
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Fix integer sign/size conversion warnings from clangAlan Coopersmith1-21/+21
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Add printf attribute to usage function and fix warnings it causesAlan Coopersmith1-14/+14
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 Coopersmith1-18/+24
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-20Combine error message stringsAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-20Combine usage message stringsAlan Coopersmith1-58/+58
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-08Drop usleep fallbacks for ancient OS versionsAlan Coopersmith2-24/+4
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 TURNEY1-13/+0
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 Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-07-18Remove direct call to Solaris nanosleep system callAlan Coopersmith1-17/+0
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 Coopersmith2-3/+3
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 Coopersmith1-2/+3
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 Adler1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-10/+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: replace hard coded man page section with substitution stringsGaetan Nadon1-2/+2
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-2/+2
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: remove unrequired AC_SUBST([*_LIBS])Gaetan Nadon1-1/+0
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 Nadon1-1/+0
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 Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09Strip trailing whitespaceAlan Coopersmith4-28/+28
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 Coopersmith1-0/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-2/+7
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 Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-09config: 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> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins2-10/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>