1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00

Use vw_printw() and fix a format print warning.

This commit is contained in:
tb 2023-10-10 09:42:56 +00:00
parent e99dc071d5
commit 9aab49f6d1
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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);