utils: Refactor check_id out of protocol for global access

This commit is contained in:
William A. Kennington III 2014-08-24 21:55:42 -07:00 committed by Guus Sliepen
parent 826ad11e41
commit 511b51ffe6
6 changed files with 13 additions and 24 deletions

View file

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