aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-08 21:41:32 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-08 21:41:32 +0300
commit92f0904c20a23ce7f76eff4b209c1ac8405f4636 (patch)
tree2258dc738956c2c0346e1f7e4c01a5a5c6db6405
parent813e12d6e6bd169e683d62a9fead62774eece52f (diff)
downloadwordsplit-92f0904c20a23ce7f76eff4b209c1ac8405f4636.tar.gz
wordsplit-92f0904c20a23ce7f76eff4b209c1ac8405f4636.tar.bz2
Minor fixes.
* wordsplit.c (_wsplt_error): Provide the format attribute. (wsplt_assign_param): Add missing static qualifier.
-rw-r--r--wordsplit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wordsplit.c b/wordsplit.c
index 9179a87..d3ec9e1 100644
--- a/wordsplit.c
+++ b/wordsplit.c
@@ -70,6 +70,9 @@ _wsplt_alloc_die (struct wordsplit *wsp)
abort ();
}
+static void _wsplt_error (const char *fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
+
static void
_wsplt_error (const char *fmt, ...)
{
@@ -1207,7 +1210,7 @@ wsplt_assign_var (struct wordsplit *wsp, const char *name, size_t namelen,
return WRDSE_OK;
}
-int
+static int
wsplt_assign_param (struct wordsplit *wsp, int param_idx, char *value)
{
char *v;

Return to:

Send suggestions and report system problems to the System administrator.