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:
parent
8ccf28f86f
commit
dba9730991
2 changed files with 4 additions and 3 deletions
|
@ -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 |
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue