declaration of 'strlen' shadows a global declaration

This commit is contained in:
psyc://psyced.org/~lynX 2011-05-23 19:13:51 +02:00
parent 8ccf28f86f
commit dba9730991
2 changed files with 4 additions and 3 deletions

View File

@ -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 |

View File

@ -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;
}