Module Name: src
Committed By: martin
Date: Wed Feb 27 11:35:35 UTC 2019
Modified Files:
src/usr.sbin/sysinst: run.c
Log Message:
Simplify previous, suggested by simonb.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/sysinst/run.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/run.c
diff -u src/usr.sbin/sysinst/run.c:1.8 src/usr.sbin/sysinst/run.c:1.9
--- src/usr.sbin/sysinst/run.c:1.8 Tue Feb 26 13:09:35 2019
+++ src/usr.sbin/sysinst/run.c Wed Feb 27 11:35:35 2019
@@ -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 @@ free_argv(char **argv)
static WINDOW *
show_cmd(const char *scmd, struct winsize *win)
{
- int n, m;
+ int n;
WINDOW *actionwin;
int nrow;
@@ -353,8 +353,8 @@ show_cmd(const char *scmd, struct winsiz
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;