Synchronize with sys/i386/isa/syscons.c revision 1.223.

This commit is contained in:
kato 1997-07-10 10:21:47 +00:00
parent c4ced555e1
commit d5d11f5dbb

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.44 1997/07/07 12:47:36 kato Exp $
* $Id: syscons.c,v 1.45 1997/07/09 14:43:19 kato Exp $
*/
#include "sc.h"
@ -1102,6 +1102,8 @@ scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
case CONS_HISTORY: /* set history size */
if (*data) {
if (cur_console->status & BUFFER_SAVED)
return EBUSY;
if (scp->history != NULL)
free(scp->history, M_DEVBUF);
#ifdef PC98