From 9499c2d26cc94186f6ed96d34c831ae3fcac672d Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Sat, 10 Sep 2005 18:29:36 +0000 Subject: Document return values --- etc/inc/util.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 1bd597d..ba38938 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -205,11 +205,12 @@ function is_macaddr($macaddr) { } /* returns true if $name is a valid name for an alias */ +/* returns NULL if a reserved word is used */ function is_validaliasname($name) { /* Array of reserved words */ $reserved = array("port", "pass"); if (in_array($name, $reserved, true)) - return; + return; /* return NULL */ if (!preg_match("/[^a-zA-Z0-9]/", $name)) return true; -- cgit v1.1