summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-27xdpyinfo 1.3.4xdpyinfo-1.3.4Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Call memset() instead of hand-coding our own equivalentAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Remove unnecessary downcast of double to floatAlan Coopersmith
The printf family always takes double arguments, not float. Clears clang warning of: xdpyinfo.c:767:5: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion] (float)dotclock/1000.0, ^~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Variable scope reductionAlan 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-04-07xdpyinfo 1.3.3xdpyinfo-1.3.3Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-06xdpyinfo: Fix printing the X.Org release version for xserver >= 21Adam Jackson
Without this you'd get 1.21.1.4 instead of 21.1.4.
2022-04-06gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03fix -Wunused-[...] compiler warningsThomas Kuehne
xdpyinfo.c:148:1: warning: ‘silent_errors’ defined but not used [-Wunused-function] 148 | silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev) xdpyinfo.c:155:14: warning: ‘old_handler’ defined but not used [-Wunused-variable] 155 | static int (*old_handler)(Display *, XErrorEvent *) = NULL; Signed-off-by: Thomas Kuehne <thomas@kuehne.cn>
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-04Build xz tarballs instead of bzip2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-09-12Disable DMX support by default, leave --with-dmx to enable itAlan Coopersmith
Since Xserver 21 has removed DMX support, we can stop pulling in dependences on libdmx on systems that won't be using it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-24Add explicit casts to clear implicit conversion warningsAlan Coopersmith
xdpyinfo.c:173:17: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] qsort(extlist, n, sizeof(char *), StrCmp); ~~~~~ ^ xdpyinfo.c:183:26: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] qe_cookies = calloc(n, sizeof(xcb_query_extension_cookie_t)); ~~~~~~ ^ xdpyinfo.c:195:12: warning: implicit conversion loses integer precision: 'unsigned long' to 'uint16_t' (aka 'unsigned short') [-Wconversion] strlen(extlist[i]), ^~~~~~~~~~~~~~~~~~ xdpyinfo.c:1382:51: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int extlen = strlen(known_extensions[i].extname) + 1; ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-03-03Only check for XFree86 if vendor string doesn't match X.OrgAlan 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>
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-04-16xdpyinfo 1.3.2xdpyinfo-1.3.2Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-02-17Delete unused NULLSTR macroAlan Coopersmith
Spotted by clang: xdpyinfo.c:145:9: warning: macro is not used [-Wunused-macros] ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-02-17Mark required arguments to Xlib error handler as unusedAlan Coopersmith
Quiets clang warnings: xdpyinfo.c:151:24: warning: unused parameter 'dpy' [-Wunused-parameter] silent_errors(Display *dpy, XErrorEvent *ev) ^ xdpyinfo.c:151:42: warning: unused parameter 'ev' [-Wunused-parameter] silent_errors(Display *dpy, XErrorEvent *ev) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02autogen.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-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith
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-11-26Sprinkle consts in StrCmp to quiet cast warningsAlan Coopersmith
Makes gcc stop saying: xdpyinfo.c: In function ‘StrCmp’: xdpyinfo.c:162:20: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] xdpyinfo.c:162:39: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Print which option was in error along with usage messageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-20xdpyinfo 1.3.1xdpyinfo-1.3.1Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-10Mark num_known_extensions as a const, since the size is fixed at compile timeAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-10Convert sprintf calls to snprintfAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-02-10Rename i & count in inner loop to avoid shadowing same named vars in outer loopAlan Coopersmith
xdpyinfo.c: In function `print_dmx_info': xdpyinfo.c:1282: warning: declaration of 'count' shadows a previous local xdpyinfo.c:1231: warning: shadowed declaration is here xdpyinfo.c:1282: warning: declaration of 'i' shadows a previous local xdpyinfo.c:1232: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-21Add xrandr to SEE ALSO section of man pageAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-21Add -version option to print version numberAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-21Combine usage messages into a single stringAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-21Declare 'len' as size_t to avoid unneccessary back-and-forth conversionsAlan Coopersmith
Fixes clang warnings: xdpyinfo.c:1463:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int len = strlen(arg); ~~~ ^~~~~~~~~~~ xdpyinfo.c:1465:32: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] if (!strncmp("-display", arg, len)) { ~~~~~~~ ^~~ xdpyinfo.c:1468:47: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] } else if (!strncmp("-queryExtensions", arg, len)) { ~~~~~~~ ^~~ xdpyinfo.c:1470:35: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] } else if (!strncmp("-ext", arg, len)) { ~~~~~~~ ^~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-01-21Mark usage() as _X_NORETURNAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-11-05Include Xwindows.h on WIN32 to avoid type clashesJon TURNEY
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2011-10-21xdpyinfo 1.3.0xdpyinfo-1.3.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Silence gcc complaint about being unable to check printf format stringAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Remove unused function hasExtensionAlan Coopersmith
Leftover from the Xprint code removed in commit 889264a52a6cf988 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Strip trailing whitespaceAlan Coopersmith
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.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: remove trailing spaces and tabsGaetan Nadon
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon
This silences an Autoconf warning
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>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-10-04Use xcb for -queryExt instead of a round-trip per extensionAlan Coopersmith
On a system with 30 extensions listed by xdpyinfo, truss -c reports this saves quite a few system calls by batching the QueryExtension requests instead of a round-trip for each one: Xlib xcb writev 40 11 poll 80 22 recv 117 29 total (*) 464 296 (*) total includes all system calls, including many not shown since their count did not change significantly. There was one additional set of open/mmap/close etc. for loading the added libX11-xcb library. Over a tcp connection, this reduced both the number of packets, and due to tcp packet header overhead, the overall amount of data: Xlib xcb TCP packets 93 35 TCP bytes 11554 7726 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2010-10-03xdpyinfo 1.2.0xdpyinfo-1.2.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>