aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorChia-chi Yeh <chiachi@android.com>2011-07-07 13:43:20 -0700
committerChia-chi Yeh <chiachi@android.com>2011-07-07 13:45:20 -0700
commit8f3b38855d8849959825acc45dd11144adc7d862 (patch)
treedda78adc1a7640a8f9c3c0adffd7148af2cababf /main.c
parentfd76ec530c3f9cd0b9cc03501d02b6cb3ba705ed (diff)
downloadipsec-tools-8f3b38855d8849959825acc45dd11144adc7d862.tar.gz
ipsec-tools: use pname instead of lcconf->chroot for the android magic.
Change-Id: Id62ce8de798389d9a6504d436a15317a4127ffb8
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index acb399e..1f1b402 100644
--- a/main.c
+++ b/main.c
@@ -31,8 +31,6 @@
#include "config.h"
#include "gcmalloc.h"
-#include "vmbuf.h"
-#include "localconf.h"
#include "session.h"
#include "schedule.h"
#include "plog.h"
@@ -93,6 +91,8 @@ static int get_control_and_arguments(int *argc, char ***argv)
extern void setup(int argc, char **argv);
+char *pname;
+
static int monitor_count;
static struct {
int (*callback)(void *ctx, int fd);
@@ -115,7 +115,7 @@ int main(int argc, char **argv)
#ifdef ANDROID_CHANGES
int control = get_control_and_arguments(&argc, &argv);
if (control != -1) {
- lcconf->chroot = "%p";
+ pname = "%p";
}
#endif