summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-04-07Handle -Wdiscarded-qualifiers warnings for XawTextBlock ptrHEADmasterAlan Coopersmith1-2/+4
xclipboard.c: In function ‘NewCurrentClip’: xclipboard.c:384:29: warning: passing argument 1 of ‘NewCurrentClipContents’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 384 | NewCurrentClipContents ("", 0); | ^~ xclipboard.c:77:44: note: expected ‘char *’ but argument is of type ‘const char *’ 77 | static void NewCurrentClipContents ( char *data, int len ); | ~~~~~~^~~~ xclipboard.c: In function ‘EraseTextWidget’: xclipboard.c:420:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 420 | block.ptr = ""; | ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
2024-04-06Fix -Wbad-function-cast warnings from casting Atom to void *Alan Coopersmith1-5/+7
xclipboard.c: In function ‘InsertClipboard’: xclipboard.c:494:33: warning: cast from function call of type ‘Atom’ {aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast] 494 | (XtPointer)(XA_COMPOUND_TEXT(d)), | ^ xclipboard.c: In function ‘LoseSelection’: xclipboard.c:637:25: warning: cast from function call of type ‘Atom’ {aka ‘long unsigned int’} to non-matching type ‘void *’ [-Wbad-function-cast] 637 | (XtPointer)(XA_UTF8_STRING(d)), CurrentTime); | ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xclipboard/-/merge_requests/4>
2022-07-10xclipboard 1.1.4xclipboard-1.1.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03NewClip: use calloc instead of manually setting values to 0 after mallocAlan Coopersmith1-5/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03NewCurrentClipContents: fix a -Wnull-dereference warningAlan Coopersmith1-1/+1
xclipboard.c: In function ‘NewCurrentClipContents’: xclipboard.c:402:28: warning: potential null pointer dereference [-Wnull-dereference] if (strlen (currentClip->clip) != 0) ~~~~~~~~~~~^~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Fix a -Wformat-truncation warningAlan Coopersmith1-1/+1
xclipboard.c: In function ‘set_button_state’: xclipboard.c:196:52: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ()); ^ xclipboard.c:196:5: note: ‘snprintf’ output between 2 and 11 bytes into a destination of size 10 snprintf (labelString, sizeof(labelString), "%d", IndexCurrentClip ()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Fix another -Wdiscarded-qualifiers warningAlan Coopersmith1-1/+1
xclipboard.c: In function ‘SaveToFile’: xclipboard.c:313:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] filename = "clipboard"; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-03Use _CONST_X_STRING to make libXt declare String as const char *Alan Coopersmith1-0/+1
Gets rid of 20 out of 37 -Wdiscarded-qualifiers errors from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04gitlab 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-28/+22
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-06-02autogen.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-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-09-05xclipboard 1.1.3xclipboard-1.1.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-18Fix some size/sign conversion warnings from clangAlan Coopersmith1-3/+3
xclipboard.c:108:27: warning: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion] clip->clip = malloc (len + 1); ~~~~~~ ~~~~^~~ xclipboard.c:103:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] len = strlen (data); ~ ^~~~~~~~~~~~~ xclipboard.c:331:15: warning: implicit conversion loses integer precision: 'int' to 'Boolean' (aka 'char') [-Wconversion] success = XawAsciiSaveAsFile (XawTextGetSource (text), filename); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17delete trailing whitespace from source filesAlan Coopersmith2-37/+37
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17Replace malloc(strlen)+strcpy with strdupAlan Coopersmith1-3/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17Convert last sprintf to snprintfAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17Rename state argument to SetButton to not shadow global state variableAlan Coopersmith1-5/+5
xcutsel.c:196: warning: declaration of 'state' shadows a global declaration xcutsel.c:84: warning: shadowed declaration is here Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-05-17Mark Quit functions as _X_NORETURN, as suggested by -Wmissing-noreturnAlan Coopersmith3-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-08-23Don't rely on being able to set tab stops.Eric S. Raymond1-26/+26
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
2012-02-10xclipboard 1.1.2xclipboard-1.1.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-07-19xclipboard: avoid overflow crash when building labelsKees Cook3-6/+9
This replaces sprintf with XtAsprintf to avoid crashing when creating various potentially large labels. https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/792642 Signed-off-by: Kees Cook <kees.cook@canonical.com> Reviewed-by: James Cloos <cloos@jhcloos.com> [jcristau: added xt >= 1.1 dependency per Alan Coopersmith] Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-04-10Change resource to better position Accept/Cancel. #17364Stanislav Maslovski1-0/+17
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=17364 The Accept and Cancel buttons on the Save dialog where just visible at the bottom of the dialog. Even if you resized the dialog, the buttons where never fully visible. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Acked-by: Dan Nicholson <dbn.lists@gmail.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon5-21/+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 Nadon2-2/+2
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon2-12/+12
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-1/+1
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-11-08xclipboard 1.1.1xclipboard-1.1.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-07include "config.h" in *.c files for autoconf definitionsAlan Coopersmith2-0/+8
Actually enables the #ifdef XKB code that commit f16c6dd23a attempted to enable Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-07Purge CVS version tagsAlan Coopersmith5-13/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-07config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-3/+6
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-07config: Remove unnecessary calls from configure.acAlan Coopersmith1-6/+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-11-07config: 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-11-07config: 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-08-06Fill in COPYING file with copyright notices from source codeAlan Coopersmith1-8/+17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-12-19configure.ac: use backticks rather than $() for cmd subsGaetan Nadon1-1/+1
Use "$PKG_CONFIG" rather than hard coded "pkg-config" Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon5-3/+6
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-27Deploy the new XORG_DEFAULT_OPTIONS #24242Gaetan Nadon1-6/+3
This macro aggregate a number of existing macros that sets commmon X.Org components configuration options. It shields the configuration file from future changes.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+0
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-13/+66
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-14xclipboard 1.1.0xclipboard-1.1.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-13Enable #ifdef XKB code to call XkbStdBell() if libxkbfile is foundAlan Coopersmith1-1/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-13Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2-8/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>