Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/stand/boot gets -> kgets. the last part of PR/...



details:   https://anonhg.NetBSD.org/src/rev/9282053a0e38
branches:  trunk
changeset: 346826:9282053a0e38
user:      isaki <isaki%NetBSD.org@localhost>
date:      Thu Aug 04 12:15:07 2016 +0000

description:
gets -> kgets. the last part of PR/51200.
It was using libsa's gets, so it's possible to change to kgets
as rev 1.23.  I've confirmed that it works.

diffstat:

 sys/arch/x68k/stand/boot/boot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ef915af1fbc2 -r 9282053a0e38 sys/arch/x68k/stand/boot/boot.c
--- a/sys/arch/x68k/stand/boot/boot.c   Thu Aug 04 11:49:07 2016 +0000
+++ b/sys/arch/x68k/stand/boot/boot.c   Thu Aug 04 12:15:07 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.29 2016/06/26 04:17:17 isaki Exp $  */
+/*     $NetBSD: boot.c,v 1.30 2016/08/04 12:15:07 isaki Exp $  */
 
 /*
  * Copyright (c) 2001 Minoura Makoto
@@ -333,7 +333,7 @@
                char *p, *options;
 
                printf("> ");
-               gets(input);
+               kgets(input, sizeof(input));
 
                for (p = &input[0]; p - &input[0] < 80 && *p == ' '; p++)
                        ;



Home | Main Index | Thread Index | Old Index