From: tb Date: Tue, 10 Oct 2023 09:42:56 +0000 (+0000) Subject: Use vw_printw() and fix a format print warning. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9aab49f6d17c18b817940f302d5fc5282f86033a;p=openbsd Use vw_printw() and fix a format print warning. --- diff --git a/games/mille/misc.c b/games/mille/misc.c index 73b238e4125..3b53c943db9 100644 --- a/games/mille/misc.c +++ b/games/mille/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.13 2016/01/08 18:09:59 mestre Exp $ */ +/* $OpenBSD: misc.c,v 1.14 2023/10/10 09:42:56 tb Exp $ */ /* $NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $ */ /* @@ -48,7 +48,7 @@ error(char *str, ...) va_start(ap, str); wmove(Score, ERR_Y, ERR_X); - vwprintw(Score, str, ap); + vw_printw(Score, str, ap); wclrtoeol(Score); beep(); refresh(); diff --git a/games/mille/print.c b/games/mille/print.c index f5341f6e4dc..ad6aeae5bfc 100644 --- a/games/mille/print.c +++ b/games/mille/print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.9 2016/01/08 18:09:59 mestre Exp $ */ +/* $OpenBSD: print.c,v 1.10 2023/10/10 09:42:56 tb Exp $ */ /* $NetBSD: print.c,v 1.4 1995/03/24 05:02:02 cgd Exp $ */ /* @@ -77,7 +77,7 @@ prboard(void) pp = &Player[PLAYER]; for (i = 0; i < HAND_SZ; i++) show_card(i + 6, temp, pp->hand[i], &pp->sh_hand[i]); - mvprintw(6, COMP_STRT + CARD_STRT, "%2d", Topcard - Deck); + mvprintw(6, COMP_STRT + CARD_STRT, "%2td", Topcard - Deck); show_card(8, COMP_STRT + CARD_STRT, Discard, &Sh_discard); if (End == 1000) { move(EXT_Y, EXT_X);