aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/lexparser.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-10-31 12:27:59 +0000
committerMartin Willi <martin@strongswan.org>2006-10-31 12:27:59 +0000
commitdb7ef62494fb6859df150e2b06b3ca91881d95af (patch)
treebd8d6e7e72ba0f27d9b34fa803d61eb243736208 /src/libstrongswan/utils/lexparser.c
parentde8b8a8c44c87130a2a5120a4c07262fa6806f6b (diff)
downloadstrongswan-db7ef62494fb6859df150e2b06b3ca91881d95af.tar.bz2
strongswan-db7ef62494fb6859df150e2b06b3ca91881d95af.tar.xz
better split up of library files "types.h" & "definitions.h"
centralized all printf specifier character definitions reuse of arginfo handlers more cleanups fixed more AMD64 issues added DEBUG_LEVEL compile flag to exclude DBGn() statements
Diffstat (limited to 'src/libstrongswan/utils/lexparser.c')
-rw-r--r--src/libstrongswan/utils/lexparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/lexparser.c b/src/libstrongswan/utils/lexparser.c
index 13fe35ef4..9d3f06593 100644
--- a/src/libstrongswan/utils/lexparser.c
+++ b/src/libstrongswan/utils/lexparser.c
@@ -52,7 +52,7 @@ bool extract_token(chunk_t *token, const char termination, chunk_t *src)
u_char *eot = memchr(src->ptr, termination, src->len);
/* initialize empty token */
- *token = CHUNK_INITIALIZER;
+ *token = chunk_empty;
if (eot == NULL) /* termination symbol not found */
{
@@ -98,7 +98,7 @@ err_t extract_value(chunk_t *value, chunk_t *line)
if (!eat_whitespace(line))
{
- *value = CHUNK_INITIALIZER;
+ *value = chunk_empty;
return NULL;
}
if (*line->ptr == '\'' || *line->ptr == '"')