Fix all formats for 64bit builds

This commit is contained in:
dsl 2009-11-15 18:43:28 +00:00
parent 470c8bf181
commit b87a655a0d
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cl_funcs.c,v 1.3 2009/11/15 18:23:08 dsl Exp $ */
/* $NetBSD: cl_funcs.c,v 1.4 2009/11/15 18:43:28 dsl Exp $ */
/*-
* Copyright (c) 1993, 1994
@ -532,7 +532,7 @@ cl_move(SCR *sp, size_t lno, size_t cno)
win = CLSP(sp) ? CLSP(sp) : stdscr;
/* See the comment in cl_cursor. */
if (wmove(win, RLNO(sp, lno), RCNO(sp, cno)) == ERR) {
msgq(sp, M_ERR, "Error: move: l(%u + %zu) c(%u + %zu)",
msgq(sp, M_ERR, "Error: move: l(%zu + %zu) c(%zu + %zu)",
lno, sp->roff, cno, sp->coff);
return (1);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ex_shell.c,v 1.3 2009/01/18 03:45:50 lukem Exp $ */
/* $NetBSD: ex_shell.c,v 1.4 2009/11/15 18:43:28 dsl Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@ -173,7 +173,7 @@ proc_wait(SCR *sp, long int pid, const char *cmd, int silent, int okpipe)
p = msg_print(sp, cmd, &nf);
len = strlen(p);
msgq(sp, M_ERR, "%.*s%s: received signal: %s%s",
MIN(len, 20), p, len > 20 ? " ..." : "",
(int)MIN(len, 20), p, len > 20 ? " ..." : "",
sigmsg(WTERMSIG(pstat)),
WCOREDUMP(pstat) ? "; core dumped" : "");
if (nf)
@ -195,7 +195,7 @@ proc_wait(SCR *sp, long int pid, const char *cmd, int silent, int okpipe)
p = msg_print(sp, cmd, &nf);
len = strlen(p);
msgq(sp, M_ERR, "%.*s%s: exited with status %d",
MIN(len, 20), p, len > 20 ? " ..." : "",
(int)MIN(len, 20), p, len > 20 ? " ..." : "",
WEXITSTATUS(pstat));
if (nf)
FREE_SPACE(sp, p, 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ex_util.c,v 1.2 2008/12/05 22:51:42 christos Exp $ */
/* $NetBSD: ex_util.c,v 1.3 2009/11/15 18:43:28 dsl Exp $ */
/*-
* Copyright (c) 1993, 1994
@ -111,7 +111,7 @@ ex_ncheck(SCR *sp, int force)
for (ap = sp->cargv + 1; *ap != NULL; ++ap);
msgq(sp, M_ERR,
"167|%d more files to edit", (ap - sp->cargv) - 1);
"167|%zd more files to edit", (ap - sp->cargv) - 1);
return (1);
}

4
dist/nvi/vi/vi.c vendored
View File

@ -1,4 +1,4 @@
/* $NetBSD: vi.c,v 1.2 2008/12/05 22:51:43 christos Exp $ */
/* $NetBSD: vi.c,v 1.3 2009/11/15 18:43:28 dsl Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@ -981,7 +981,7 @@ v_init(SCR *sp)
if (sp->t_rows > sp->rows - 1) {
sp->t_minrows = sp->t_rows = sp->rows - 1;
msgq(sp, M_INFO,
"214|Windows option value is too large, max is %u",
"214|Windows option value is too large, max is %zu",
sp->t_rows);
}
sp->t_maxrows = sp->rows - 1;