X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fcmdline.c;h=117bca0082f989dc90d102e35f871f7e7e2a2d2f;hp=bf73024ae4335479b38ac6741ff80a4aed5334c7;hb=11f8168a5e7a6f966693e371697920e0be7abc0f;hpb=f4ebbd9f7ea23e3f0fcbe098754580c220894628 diff --git a/second/cmdline.c b/second/cmdline.c index bf73024..117bca0 100644 --- a/second/cmdline.c +++ b/second/cmdline.c @@ -1,21 +1,27 @@ -/* Prompt handling - - Copyright (C) 1996 Maurizio Plaza - 1996 Jakub Jelinek - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* + * cmdline.c - Prompt handling + * + * Copyright (C) 2001, 2002 Ethan Benson + * + * Adapted from SILO + * + * Copyright (C) 1996 Maurizio Plaza + * 1996 Jakub Jelinek + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ #include "types.h" #include "stdarg.h" @@ -46,7 +52,7 @@ void cmdedit (void (*tabfunc) (void), int password) } if (!password) prom_printf(buff, x); - + for (;;) { c = prom_getchar (); if (c == -1)