Module Name:    src
Committed By:   martin
Date:           Wed Feb 27 12:59:35 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: run.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 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.9 src/usr.sbin/sysinst/run.c:1.10
--- src/usr.sbin/sysinst/run.c:1.9	Wed Feb 27 11:35:35 2019
+++ src/usr.sbin/sysinst/run.c	Wed Feb 27 12:59:35 2019
@@ -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 @@ free_argv(char **argv)
 static WINDOW *
 show_cmd(const char *scmd, struct winsize *win)
 {
-	int n;
 	WINDOW *actionwin;
 	int nrow;
 
@@ -353,8 +352,7 @@ show_cmd(const char *scmd, struct winsiz
 	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;

Reply via email to