Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Avoid string + int warning.



details:   https://anonhg.NetBSD.org/src/rev/0372f6bbd5bb
branches:  trunk
changeset: 997196:0372f6bbd5bb
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Feb 26 13:09:35 2019 +0000

description:
Avoid string + int warning.

diffstat:

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

diffs (18 lines):

diff -r 878bb160112a -r 0372f6bbd5bb usr.sbin/sysinst/run.c
--- a/usr.sbin/sysinst/run.c    Tue Feb 26 12:23:12 2019 +0000
+++ b/usr.sbin/sysinst/run.c    Tue Feb 26 13:09:35 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.7 2018/11/20 19:02:07 martin Exp $   */
+/*     $NetBSD: run.c,v 1.8 2019/02/26 13:09:35 joerg Exp $    */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -354,7 +354,7 @@
        standend();
        addstr("\n\n");
        for (n = win->ws_col; (m = min(n, 30)) > 0; n -= m)
-               addstr( "------------------------------" + 30 - m);
+               addstr(&"------------------------------"[30 - m]);
        refresh();
 
        nrow = getcury(stdscr) + 1;



Home | Main Index | Thread Index | Old Index