noip.c (parse_acl_env): Move next to `parse_acl_line'.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2016 21:38:57 +0000 (22:38 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 2 May 2016 23:14:25 +0000 (00:14 +0100)
noip.c

diff --git a/noip.c b/noip.c
index de7cf89..3756ab9 100644 (file)
--- a/noip.c
+++ b/noip.c
@@ -1084,6 +1084,20 @@ bad:
   return;
 }
 
+/* Parse an ACL from an environment variable VAR, attaching it to the list
+ * TAIL.
+ */
+static void parse_acl_env(const char *var, aclnode ***tail)
+{
+  char *p, *q;
+
+  if ((p = getenv(var)) != 0) {
+    p = q = xstrdup(p);
+    parse_acl_line(&q, tail);
+    free(p);
+  }
+}
+
 /* Parse the autoports configuration directive.  Syntax is MIN - MAX. */
 static void parse_autoports(char **pp)
 {
@@ -1106,19 +1120,6 @@ bad:
   return;
 }
 
-/* Parse an ACL from an environment variable VAR, attaching it to the list
- * TAIL. */
-static void parse_acl_env(const char *var, aclnode ***tail)
-{
-  char *p, *q;
-
-  if ((p = getenv(var)) != 0) {
-    p = q = xstrdup(p);
-    parse_acl_line(&q, tail);
-    free(p);
-  }
-}
-
 /* Read the configuration from the config file and environment. */
 static void readconfig(void)
 {