diff options
author | Chia-chi Yeh <chiachi@android.com> | 2011-07-07 13:43:20 -0700 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2011-07-07 13:45:20 -0700 |
commit | 8f3b38855d8849959825acc45dd11144adc7d862 (patch) | |
tree | dda78adc1a7640a8f9c3c0adffd7148af2cababf /main.c | |
parent | fd76ec530c3f9cd0b9cc03501d02b6cb3ba705ed (diff) | |
download | ipsec-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |