summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-02-05 13:20:54 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-02-05 13:20:54 -0800
commit431af5a160d3a946c9c27a30274fc708e8b74dfd (patch)
tree3bbf229d2fdf55a6ab852fe22b4bbe72185f43c5 /lib
parent28c79f93121923acb8cc77270a63701ed4926846 (diff)
downloadgnulib-431af5a160d3a946c9c27a30274fc708e8b74dfd.tar.gz
sh-quote: backport fix from diffutils
* lib/sh-quote.c (init_sh_quoting_options): Use C89 through C17 style for parameterless static function. This avoided a warning when compiling diffutils. This patch is backported from a circa-2009 diffutils patch and lets us remove diffutils/gl/lib/sh-quote.c.diff; see: https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=8c3d25a63a2c5912170ef6e13f748f3904e6b5cf
Diffstat (limited to 'lib')
-rw-r--r--lib/sh-quote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sh-quote.c b/lib/sh-quote.c
index 0e5a56ea90..a15d2cc541 100644
--- a/lib/sh-quote.c
+++ b/lib/sh-quote.c
@@ -30,7 +30,7 @@ static struct quoting_options *sh_quoting_options;
/* Initializes the sh_quoting_options variable. */
static void
-init_sh_quoting_options ()
+init_sh_quoting_options (void)
{
sh_quoting_options = clone_quoting_options (NULL);
set_quoting_style (sh_quoting_options, shell_quoting_style);