Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.bin/vi/vi Pullup 1.3 [releng]:
details: https://anonhg.NetBSD.org/src/rev/38600ca4c023
branches: netbsd-1-5
changeset: 489858:38600ca4c023
user: tv <tv%NetBSD.org@localhost>
date: Wed Oct 18 01:46:05 2000 +0000
description:
Pullup 1.3 [releng]:
Fix %l[du] formats that have int arguments on ILP32; might break LP64.
diffstat:
usr.bin/vi/vi/vs_line.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r ec4bec173f22 -r 38600ca4c023 usr.bin/vi/vi/vs_line.c
--- a/usr.bin/vi/vi/vs_line.c Wed Oct 18 01:45:49 2000 +0000
+++ b/usr.bin/vi/vi/vs_line.c Wed Oct 18 01:46:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vs_line.c,v 1.2 1998/01/09 08:08:50 perry Exp $ */
+/* $NetBSD: vs_line.c,v 1.2.10.1 2000/10/18 01:46:05 tv Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -141,7 +141,8 @@
cols_per_screen -= O_NUMBER_LENGTH;
if ((!dne || smp->lno == 1) && skip_cols == 0) {
nlen = snprintf(cbuf,
- sizeof(cbuf), O_NUMBER_FMT, smp->lno);
+ sizeof(cbuf), O_NUMBER_FMT,
+ (unsigned long)smp->lno);
(void)gp->scr_addstr(sp, cbuf, nlen);
}
}
@@ -504,7 +505,8 @@
break;
(void)gp->scr_move(sp, smp - HMAP, 0);
- len = snprintf(nbuf, sizeof(nbuf), O_NUMBER_FMT, smp->lno);
+ len = snprintf(nbuf, sizeof(nbuf), O_NUMBER_FMT,
+ (unsigned long)smp->lno);
(void)gp->scr_addstr(sp, nbuf, len);
}
(void)gp->scr_move(sp, oldy, oldx);
Home |
Main Index |
Thread Index |
Old Index