diff options
author | brian <brian@FreeBSD.org> | 1998-03-22 00:43:04 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-03-22 00:43:04 +0000 |
commit | e678d7822c784974dffa1cd6a80aacad28ef7852 (patch) | |
tree | 214acbc7cda830a601cb46af2981f07b42d6f978 /usr.sbin/pppctl | |
parent | de12df2a1c38956044434fd895d4c16b88dfff01 (diff) | |
download | FreeBSD-src-e678d7822c784974dffa1cd6a80aacad28ef7852.zip FreeBSD-src-e678d7822c784974dffa1cd6a80aacad28ef7852.tar.gz |
Quiet -Wall in gcc-2.8.1
Obtained from: OpenBSD
Diffstat (limited to 'usr.sbin/pppctl')
-rw-r--r-- | usr.sbin/pppctl/pppctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pppctl/pppctl.c b/usr.sbin/pppctl/pppctl.c index 92be115..918e0ec 100644 --- a/usr.sbin/pppctl/pppctl.c +++ b/usr.sbin/pppctl/pppctl.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pppctl.c,v 1.14 1997/12/21 12:11:13 brian Exp $ + * $Id: pppctl.c,v 1.15 1997/12/27 13:44:42 brian Exp $ */ #include <sys/types.h> @@ -364,11 +364,12 @@ main(int argc, char **argv) edit = el_init("pppctl", stdin, stdout); el_source(edit, NULL); el_set(edit, EL_PROMPT, GetPrompt); - if ((env = getenv("EL_EDITOR"))) + if ((env = getenv("EL_EDITOR"))) { if (!strcmp(env, "vi")) el_set(edit, EL_EDITOR, "vi"); else if (!strcmp(env, "emacs")) el_set(edit, EL_EDITOR, "emacs"); + } el_set(edit, EL_SIGNAL, 1); el_set(edit, EL_HIST, history, (const char *)hist); while ((l = smartgets(edit, &len, fd))) { |