diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-21 16:39:25 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-21 16:39:25 +0000 |
commit | c2c5fe440f099ca151032fdb9e74a22c56801794 (patch) | |
tree | 75001bd933319827c6f01a45b40ad4ac5ec826fe | |
parent | 4d4f0cc25606e02f016b00565a10be0dab33319f (diff) |
quiet -Wall in gcc2.8.1
-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 c1bba75352e..15ae7dcdc62 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.6 1997/12/27 13:44:15 brian Exp $ + * $Id: pppctl.c,v 1.7 1998/03/21 16:39:24 todd 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))) { |