From 9bf61e12c10d58be44b1b5ba95a56abcbc571cf6 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 1 Jun 2013 23:43:17 -0700 Subject: Remove has_mask(), it will be replaced with better is_cidr() and is_single() functions. --- src/ipaddrcheck_functions.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/ipaddrcheck_functions.c') diff --git a/src/ipaddrcheck_functions.c b/src/ipaddrcheck_functions.c index 2ba8de2..bb86ee7 100644 --- a/src/ipaddrcheck_functions.c +++ b/src/ipaddrcheck_functions.c @@ -37,24 +37,6 @@ * the format was. */ -/* Does it have mask? */ -int has_mask(char* address_str) -{ - int result; - char *hasslash = strchr(address_str, '/'); - - if( hasslash != NULL ) - { - result = RESULT_SUCCESS; - } - else - { - result = RESULT_FAILURE; - } - - return(result); -} - /* Does it look like IPv4 CIDR (e.g. 192.0.2.1/24)? */ int is_ipv4_cidr(char* address_str) { -- cgit v1.2.3