aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter/confread.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-09-18 17:57:05 +0200
committerTobias Brunner <tobias@strongswan.org>2017-09-19 13:24:43 +0200
commite0e43229736a84db5af6cb7af9cc2ae03da4c906 (patch)
treef496c2132e700b761b49571254292622a80254bd /src/starter/confread.c
parentd4593353c97347fc9505a5a4fe3cfb66b246874f (diff)
downloadstrongswan-e0e43229736a84db5af6cb7af9cc2ae03da4c906.tar.bz2
strongswan-e0e43229736a84db5af6cb7af9cc2ae03da4c906.tar.xz
configure: Detect type of length parameter for gperf generated function
Since 3.1 gperf uses size_t for the length parameter instead of an unsigned int.
Diffstat (limited to 'src/starter/confread.c')
-rw-r--r--src/starter/confread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/starter/confread.c b/src/starter/confread.c
index f98fc8936..e78f2a70b 100644
--- a/src/starter/confread.c
+++ b/src/starter/confread.c
@@ -48,7 +48,7 @@ static const char firewall_defaults[] = IPSEC_SCRIPT " _updown iptables";
/**
* Provided by GPERF
*/
-extern kw_entry_t *in_word_set (char *str, unsigned int len);
+extern const kw_entry_t *in_word_set(register const char*, register GPERF_LEN_TYPE);
/**
* Process deprecated keywords
@@ -95,7 +95,7 @@ static void load_setup(starter_config_t *cfg, conf_parser_t *parser)
{
enumerator_t *enumerator;
dictionary_t *dict;
- kw_entry_t *entry;
+ const kw_entry_t *entry;
char *key, *value;
DBG2(DBG_APP, "Loading config setup");
@@ -146,7 +146,7 @@ static void load_ca(starter_ca_t *ca, starter_config_t *cfg,
{
enumerator_t *enumerator;
dictionary_t *dict;
- kw_entry_t *entry;
+ const kw_entry_t *entry;
kw_token_t token;
char *key, *value;
@@ -559,7 +559,7 @@ static void load_conn(starter_conn_t *conn, starter_config_t *cfg,
{
enumerator_t *enumerator;
dictionary_t *dict;
- kw_entry_t *entry;
+ const kw_entry_t *entry;
kw_token_t token;
char *key, *value;