Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Simplify previous even further by using hli...



details:   https://anonhg.NetBSD.org/src/rev/646153a809f4
branches:  trunk
changeset: 449227:646153a809f4
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 27 12:59:35 2019 +0000

description:
Simplify previous even further by using hline() instead of a hand coded
version.

diffstat:

 usr.sbin/sysinst/run.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 7666377ef628 -r 646153a809f4 usr.sbin/sysinst/run.c
--- a/usr.sbin/sysinst/run.c    Wed Feb 27 11:35:35 2019 +0000
+++ b/usr.sbin/sysinst/run.c    Wed Feb 27 12:59:35 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.9 2019/02/27 11:35:35 martin Exp $   */
+/*     $NetBSD: run.c,v 1.10 2019/02/27 12:59:35 martin Exp $  */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -335,7 +335,6 @@
 static WINDOW *
 show_cmd(const char *scmd, struct winsize *win)
 {
-       int n;
        WINDOW *actionwin;
        int nrow;
 
@@ -353,8 +352,7 @@
        printw("%s", scmd);
        standend();
        addstr("\n\n");
-       for (n = 0; n < win->ws_col; n++)
-               addstr("-");
+       hline(0, win->ws_col);
        refresh();
 
        nrow = getcury(stdscr) + 1;



Home | Main Index | Thread Index | Old Index