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/a7db75882027
branches: trunk
changeset: 997215:a7db75882027
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 a91f8f7cbebc -r a7db75882027 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