summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-06-03xwd 1.0.9HEADxwd-1.0.9masterAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-11Make -help & -version work without requiring an open displayAlan Coopersmith3-14/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13list.c: Stop building functions that are never calledAlan Coopersmith1-0/+4
This general-purpose list implementation includes functions xwd doesn't use, so we don't need to build those here. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Delete commented-out local copy of list function prototypesAlan Coopersmith1-12/+0
Duplicated list.h header contents Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Variable scope reduction as recommended by cppcheckAlan Coopersmith4-75/+63
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Remove unnecessary casts from malloc() and free() callsAlan Coopersmith3-11/+10
Not needed in C89 & later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Handle -Wcomma warnings from clangAlan Coopersmith1-4/+8
xwd.c:332:22: warning: possible misuse of comma operator here [-Wcomma] width += absx, absx = 0; ^ xwd.c:334:23: warning: possible misuse of comma operator here [-Wcomma] height += absy, absy = 0; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-13Remove unused macrosAlan Coopersmith1-6/+0
Found by clang: multiVis.c:977:9: warning: macro is not used [-Wunused-macros] #define DIRECT_COLOR 0x11 ^ multiVis.c:976:9: warning: macro is not used [-Wunused-macros] #define TRUE_COLOR 0x10 ^ multiVis.c:975:9: warning: macro is not used [-Wunused-macros] #define PSEUDO_COLOR 0x04 ^ multiVis.c:974:9: warning: macro is not used [-Wunused-macros] #define GRAY_SCALE 0x02 ^ multiVis.c:973:9: warning: macro is not used [-Wunused-macros] #define STATIC_GRAY 0x01 ^ 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>
2021-12-08Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-08gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-11-28Fix spelling/wording issuesAlan Coopersmith6-14/+14
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01xwd 1.0.8xwd-1.0.8Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22Zero out uninitialized memory so as not to write stack garbage to dump fileJim Rees2-8/+11
Also check return from XFetchName() Signed-off-by: Jim Rees <rees@umich.edu>
2019-09-23Elide empty elseAlan Coopersmith1-4/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-23Adopt standard X.Org coding styleAlan Coopersmith8-1226/+1221
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-09-23QueryColorMap() function in multiVis.c may retrieve incorrect colours (#3)Alan Coopersmith1-1/+1
Fixes: https://gitlab.freedesktop.org/xorg/app/xwd/issues/3 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-09Combine options info into a single string in usage()Alan Coopersmith1-16/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18Ensure consistency between the manpage and the output of the -help optionStéphane Aulery2-10/+28
Signed-off-by: Stéphane Aulery <lkppo@free.fr> 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/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09xwd 1.0.7xwd-1.0.7Alan 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>
2014-11-23Fix a vs an typo in the man page.James Cloos1-1/+1
Reported-by: Jens Schweikhardt <schweikh@schweikhardt.net> Signed-off-by: James Cloos <cloos@jhcloos.com>
2014-06-03Add -version option to print program versionAlan Coopersmith2-2/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-03Print which option was in error along with usage messageAlan Coopersmith4-12/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.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-08xwd 1.0.6xwd-1.0.6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-20Strip trailing whitespaceAlan Coopersmith8-113/+113
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-20Fix some clang warnings about integer size/sign conversionsAlan Coopersmith4-17/+15
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-20Quiet gcc warnings about potentially uninitialized variablesAlan Coopersmith1-1/+1
It should have been impossible for these to be used without being initialized, but following the logic to prove that was trickier than the compiler was willing to unravel. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Remove unused bitmap_unit variable from ReadRegionsInList()Alan Coopersmith1-3/+0
multiVis.c: In function ‘ReadRegionsInList’: multiVis.c:389:25: warning: variable ‘bitmap_unit’ set but not used [-Wunused-but-set-variable] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Rename new_list variable to not shadow new_list functionAlan Coopersmith1-5/+5
Silences gcc warning: list.c: In function ‘dup_list_head’: list.c:104:14: warning: declaration of ‘new_list’ shadows a global declaration [-Wshadow] list.c:80:10: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Add printf attributes as suggested by gcc -Wmissing-format-attributeAlan Coopersmith2-5/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-19Fix gcc warnings about discarding const qualifiersAlan Coopersmith3-7/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-22Optionally enable existing code to call XkbStdBell from libxkbfileAlan Coopersmith2-1/+15
Copied from similar check in oclock/configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-22Move Pixel typedef from xwd.c to wsutils.hAlan Coopersmith3-2/+2
Removes need for including <X11/Intrinsic.h> in multiVis.c just to get the Pixel typedef, which resolves https://bugs.freedesktop.org/show_bug.cgi?id=47462 without adding a dependency on libXt. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-02-22xwd 1.0.5xwd-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-12-13Silence -Wshadow warningsJeremy Huddleston1-12/+12
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-12-13Mark usage as _X_NORETURNJeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-12-13Dead code removalJeremy Huddleston1-14/+0
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-03Fix LP64 bugPär Lidberg2-5/+6
https://bugs.freedesktop.org/show_bug.cgi?id=14321 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-09Replace local checks for gcc with _X_NORETURN from xproto 7.0.17Alan Coopersmith2-6/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-08Rewrite parse_long to not fail -Wformat-nonliteralJeremy Huddleston1-5/+16
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-05-08Dead code removalJeremy Huddleston1-5/+2
xwd.c:298:5: warning: Value stored to 'bw' is never read bw = 0; ^ ~ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-18/+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-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>