From: Ashok Rao Date: Sat, 11 Sep 2010 12:14:48 +0000 (+1000) Subject: chat: Allow TIMEOUT value to come from environment variable X-Git-Tag: ppp-2.4.7~47 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=ae80bf833e48a6202f44a935a68083ae52ad3824;p=ppp.git chat: Allow TIMEOUT value to come from environment variable This allows the TIMEOUT value to be obtained from the environment using the $ENVVAR syntax. Signed-off-by: Paul Mackerras --- diff --git a/chat/chat.c b/chat/chat.c index 0b88c27..710dba9 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -1167,6 +1167,7 @@ register char *s; if (timeout_next) { timeout_next = 0; + s = clean(s, 0); timeout = atoi(s); if (timeout <= 0)