Removed len argument from proposal_get_token()

Also use enumerators instead of lexparser.h to parse proposal strings.
This commit is contained in:
Tobias Brunner
2012-09-13 15:44:01 +02:00
parent 1962e12fd3
commit 995875210a
6 changed files with 30 additions and 32 deletions
@@ -26,7 +26,7 @@
/*
* see header file
*/
const proposal_token_t* proposal_get_token(const char *str, u_int len)
const proposal_token_t* proposal_get_token(const char *str)
{
return proposal_get_token_static(str, len);
return proposal_get_token_static(str, strlen(str));
}
@@ -62,9 +62,8 @@ struct proposal_token {
* Returns a proposal token for the specified string if a token exists.
*
* @param str the string containing the name of the token
* @param len the length of the string
* @return proposal_tolen if found otherwise NULL
*/
const proposal_token_t* proposal_get_token(const char *str, u_int len);
const proposal_token_t* proposal_get_token(const char *str);
#endif /** PROPOSAL_KEYWORDS_H_ @}*/