utils: Refactor check_id out of protocol for global access
This commit is contained in:
parent
826ad11e41
commit
511b51ffe6
6 changed files with 13 additions and 24 deletions
|
|
@ -55,17 +55,6 @@ static char (*request_name[]) = {
|
|||
|
||||
static splay_tree_t *past_request_tree;
|
||||
|
||||
bool check_id(const char *id) {
|
||||
if(!id || !*id)
|
||||
return false;
|
||||
|
||||
for(; *id; id++)
|
||||
if(!isalnum(*id) && *id != '_')
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Generic request routines - takes care of logging and error
|
||||
detection as well */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue