summaryrefslogtreecommitdiff
path: root/srcx
diff options
context:
space:
mode:
Diffstat (limited to 'srcx')
-rw-r--r--srcx/jstart.c3
-rw-r--r--srcx/util.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/srcx/jstart.c b/srcx/jstart.c
index c61f484..353c579 100644
--- a/srcx/jstart.c
+++ b/srcx/jstart.c
@@ -146,6 +146,7 @@ static void allocate_address(char* arg, struct jail* j)
char *ip;
int error, i = 0;
+ j->version = JAIL_API_VERSION;
j->ip4s = j->ip6s = 0;
j->ip4 = NULL;
j->ip6 = NULL;
@@ -164,8 +165,6 @@ static void allocate_address(char* arg, struct jail* j)
add_addresses(j, res);
freeaddrinfo(res);
}
-
- j->version = JAIL_API_VERSION;
}
static void free_address(struct jail* j)
diff --git a/srcx/util.c b/srcx/util.c
index dd0af87..4eeac50 100644
--- a/srcx/util.c
+++ b/srcx/util.c
@@ -36,6 +36,8 @@
* James E. Quick <jq@quick.com>
*/
+#include "config.h"
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/proc.h>