From 051fa2d8dbae6489ffd5405056ef17ad5986897a Mon Sep 17 00:00:00 2001 Message-Id: <051fa2d8dbae6489ffd5405056ef17ad5986897a.1714440386.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 2 May 2016 22:38:57 +0100 Subject: [PATCH] noip.c (parse_acl_env): Move next to `parse_acl_line'. Organization: Straylight/Edgeware From: Mark Wooding --- noip.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/noip.c b/noip.c index de7cf89..3756ab9 100644 --- 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) { -- [mdw]