chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6e0ea8
)
noip.c (parse_acl_env): Move next to `parse_acl_line'.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 21:38:57 +0000
(22:38 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 23:14:25 +0000
(
00:14
+0100)
noip.c
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index de7cf8983aa3ba7d2878c411c2b65a7a7dae0a35..3756ab9b7742030fbf922919b122bb531fd380eb 100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-1084,6
+1084,20
@@
bad:
return;
}
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)
{
/* Parse the autoports configuration directive. Syntax is MIN - MAX. */
static void parse_autoports(char **pp)
{
@@
-1106,19
+1120,6
@@
bad:
return;
}
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)
{
/* Read the configuration from the config file and environment. */
static void readconfig(void)
{