1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Quiet -Wall in gcc-2.8.1

Obtained from: OpenBSD
This commit is contained in:
Brian Somers 1998-03-22 00:43:04 +00:00
parent 52403fe6de
commit 23e877a8e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34771

View File

@ -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))) {