From 24b7f3f243a0ac610b249ef645d0d43579db96ac Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 23 May 2011 19:12:27 +0200 Subject: [PATCH] declaration of 'strlen' shadows a global declaration --- bench/benchmark.org | 3 ++- include/psyc.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bench/benchmark.org b/bench/benchmark.org index 38ff07a..c30705f 100644 --- a/bench/benchmark.org +++ b/bench/benchmark.org @@ -126,7 +126,8 @@ We'll use the latter here: * Results -Parsing time of 1 000 000 packets in milliseconds: +Parsing time of 1 000 000 packets, in milliseconds. +a simple strlen scan of the respective message is provided for comparison. | input: | PSYC | | JSON | | | XML | | | parser: | strlen | libpsyc | json-c | json-glib | libxml sax | libxml | rapidxml | diff --git a/include/psyc.h b/include/psyc.h index b33e96a..6146665 100644 --- a/include/psyc.h +++ b/include/psyc.h @@ -108,9 +108,9 @@ typedef struct * @return An instance of the psycString struct. */ static inline -psycString psyc_newString (const char *str, size_t strlen) +psycString psyc_newString (const char *str, size_t slen) { - psycString s = {strlen, str}; + psycString s = {slen, str}; return s; }