diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2018-07-26 22:14:14 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-26 22:14:14 -0700 |
commit | c712b12e94d682c306b04aabf4ffac184dd2d75f (patch) | |
tree | e32064b52a0629fc1205bf0f623fd77ff0217302 | |
parent | 90da8c8f15db2c82aece6e4085aaf9c116d481f2 (diff) | |
parent | 41f54cf2306bbb404788e7af995a0d624d47b8d0 (diff) | |
download | ppp-c712b12e94d682c306b04aabf4ffac184dd2d75f.tar.gz |
pppd: Remove obsolete way of receiving args from mtpd am: 1c942b8431 am: 78184165d3
am: 41f54cf230
Change-Id: I632bb4651d36ce70b8e927e385d7c5a4d14bdcfb
-rw-r--r-- | pppd/main.c | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/pppd/main.c b/pppd/main.c index 5424e42..09f5a53 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -357,39 +357,16 @@ main(argc, argv) */ tty_init(); - progname = *argv; - #if defined(__ANDROID__) { extern void pppox_init(); pppox_init(); privileged = 1; } - { - char *envargs = getenv("envargs"); - if (envargs) { - int i; - /* Decode the arguments in-place and count the number of them. - * They were hex encoded using [A-P] instead of [0-9A-F]. */ - for (argc = 0, i = 0; envargs[i] && envargs[i + 1]; i += 2) { - char c = ((envargs[i] - 'A') << 4) + (envargs[i + 1] - 'A'); - if (c == 0) { - ++argc; - } - envargs[i / 2 + 1] = c; - } - if (argc == 0 || (argv = malloc(sizeof(char *) * argc)) == NULL) { - fatal("Failed to parse envargs!"); - } - for (envargs[0] = 0, i = 0; i < argc; ++envargs) { - if (envargs[0] == 0) { - argv[i++] = &envargs[1]; - } - } - } - } #endif + progname = *argv; + /* * Parse, in order, the system options file, the user's options file, * and the command line arguments. |