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, suggested by simonb.



details:   https://anonhg.NetBSD.org/src/rev/7666377ef628
branches:  trunk
changeset: 449226:7666377ef628
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Feb 27 11:35:35 2019 +0000

description:
Simplify previous, suggested by simonb.

diffstat:

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

diffs (29 lines):

diff -r fdac958f2cec -r 7666377ef628 usr.sbin/sysinst/run.c
--- a/usr.sbin/sysinst/run.c    Wed Feb 27 09:11:01 2019 +0000
+++ b/usr.sbin/sysinst/run.c    Wed Feb 27 11:35:35 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.8 2019/02/26 13:09:35 joerg Exp $    */
+/*     $NetBSD: run.c,v 1.9 2019/02/27 11:35:35 martin Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -335,7 +335,7 @@
 static WINDOW *
 show_cmd(const char *scmd, struct winsize *win)
 {
-       int n, m;
+       int n;
        WINDOW *actionwin;
        int nrow;
 
@@ -353,8 +353,8 @@
        printw("%s", scmd);
        standend();
        addstr("\n\n");
-       for (n = win->ws_col; (m = min(n, 30)) > 0; n -= m)
-               addstr(&"------------------------------"[30 - m]);
+       for (n = 0; n < win->ws_col; n++)
+               addstr("-");
        refresh();
 
        nrow = getcury(stdscr) + 1;



Home | Main Index | Thread Index | Old Index