1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

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 a4abbfbab1
commit d0181e633a
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;
}