summaryrefslogtreecommitdiff
path: root/src/ipaddrcheck_functions.c
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2013-06-01 23:43:17 -0700
committerDaniil Baturin <daniil@baturin.org>2013-06-01 23:43:17 -0700
commit9bf61e12c10d58be44b1b5ba95a56abcbc571cf6 (patch)
treef8485b80f8dff9ab2fa313e008ad0dd6f853e5b4 /src/ipaddrcheck_functions.c
parent042b7e2ce387cc18f0c06bb9fe333dacc10ef724 (diff)
downloadipaddrcheck-9bf61e12c10d58be44b1b5ba95a56abcbc571cf6.tar.gz
ipaddrcheck-9bf61e12c10d58be44b1b5ba95a56abcbc571cf6.zip
Remove has_mask(), it will be replaced with better is_cidr()
and is_single() functions.
Diffstat (limited to 'src/ipaddrcheck_functions.c')
-rw-r--r--src/ipaddrcheck_functions.c18
1 files changed, 0 insertions, 18 deletions
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)
{