Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/stand Change "tgets_s" back to "tgets". We ob...



details:   https://anonhg.NetBSD.org/src/rev/33b2cd470242
branches:  trunk
changeset: 345850:33b2cd470242
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Jun 11 06:22:11 2016 +0000

description:
Change "tgets_s" back to "tgets". We obviously want to keep the bounds
argument, but there's no need to mess with the function name.

diffstat:

 sys/arch/hp300/stand/common/samachdep.h |  4 ++--
 sys/arch/hp300/stand/common/tgets.c     |  4 ++--
 sys/arch/hp300/stand/uboot/uboot.c      |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r e336de9acff8 -r 33b2cd470242 sys/arch/hp300/stand/common/samachdep.h
--- a/sys/arch/hp300/stand/common/samachdep.h   Sat Jun 11 06:20:11 2016 +0000
+++ b/sys/arch/hp300/stand/common/samachdep.h   Sat Jun 11 06:22:11 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: samachdep.h,v 1.19 2016/06/05 17:43:02 christos Exp $  */
+/*     $NetBSD: samachdep.h,v 1.20 2016/06/11 06:22:11 dholland Exp $  */
 
 /*
  * Copyright (c) 1982, 1990, 1993
@@ -98,7 +98,7 @@
 void _transfer(char *, int, int, int, char *, char *);
 
 /* tget.c */
-int tgets_s(char *, size_t);
+int tgets(char *, size_t);
 
 
 #define DELAY(n)                                                       \
diff -r e336de9acff8 -r 33b2cd470242 sys/arch/hp300/stand/common/tgets.c
--- a/sys/arch/hp300/stand/common/tgets.c       Sat Jun 11 06:20:11 2016 +0000
+++ b/sys/arch/hp300/stand/common/tgets.c       Sat Jun 11 06:22:11 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tgets.c,v 1.7 2016/06/09 03:05:54 christos Exp $       */
+/*     $NetBSD: tgets.c,v 1.8 2016/06/11 06:22:11 dholland Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 #include <hp300/stand/common/samachdep.h>
 
 int
-tgets_s(char *buf, size_t size)
+tgets(char *buf, size_t size)
 {
        int c;
        int i;
diff -r e336de9acff8 -r 33b2cd470242 sys/arch/hp300/stand/uboot/uboot.c
--- a/sys/arch/hp300/stand/uboot/uboot.c        Sat Jun 11 06:20:11 2016 +0000
+++ b/sys/arch/hp300/stand/uboot/uboot.c        Sat Jun 11 06:22:11 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uboot.c,v 1.16 2016/06/05 17:43:02 christos Exp $      */
+/*     $NetBSD: uboot.c,v 1.17 2016/06/11 06:22:11 dholland Exp $      */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -109,7 +109,7 @@
        printf("Boot: [[[%s%d%c:]%s][-a][-c][-d][-s][-v][-q]] :- ",
            devsw[bdev].dv_name, bctlr + (8 * badapt), 'a' + bpart, name);
 
-       if (tgets_s(line, sizeof(line))) {
+       if (tgets(line, sizeof(line))) {
                if (strcmp(line, "reset") == 0) {
                        call_req_reboot();      /* reset machine */
                        printf("panic: can't reboot, halting\n");



Home | Main Index | Thread Index | Old Index