X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=158dfed89acd3201d0b1d2084565500ffa3a0b2e;hb=511b51ffe60c20a9091829c03863197b76027716;hp=2a2c488e8fd712296a5546b4124408b2d20f1511;hpb=826ad11e419db90b66b3f76a90b54df021bb39fc;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 2a2c488e..158dfed8 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1675,18 +1675,6 @@ static int cmd_config(int argc, char *argv[]) { return 0; } -bool check_id(const char *name) { - if(!name || !*name) - return false; - - for(int i = 0; i < strlen(name); i++) { - if(!isalnum(name[i]) && name[i] != '_') - return false; - } - - return true; -} - static bool try_bind(int port) { struct addrinfo *ai = NULL; struct addrinfo hint = {