Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vi/common can't print size_t with %d



details:   https://anonhg.NetBSD.org/src/rev/845f5bab06f7
branches:  trunk
changeset: 551045:845f5bab06f7
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Aug 28 01:55:17 2003 +0000

description:
can't print size_t with %d

diffstat:

 usr.bin/vi/common/options.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0b5255781496 -r 845f5bab06f7 usr.bin/vi/common/options.c
--- a/usr.bin/vi/common/options.c       Thu Aug 28 01:53:06 2003 +0000
+++ b/usr.bin/vi/common/options.c       Thu Aug 28 01:55:17 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.c,v 1.8 2003/08/27 15:15:16 dsl Exp $  */
+/*     $NetBSD: options.c,v 1.9 2003/08/28 01:55:17 mrg Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -16,7 +16,7 @@
 #if 0
 static const char sccsid[] = "@(#)options.c    10.51 (Berkeley) 10/14/96";
 #else
-__RCSID("$NetBSD: options.c,v 1.8 2003/08/27 15:15:16 dsl Exp $");
+__RCSID("$NetBSD: options.c,v 1.9 2003/08/28 01:55:17 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -312,7 +312,8 @@
 
        if (sizeof optlist / sizeof optlist[0] - 1 != O_OPTIONCOUNT) {
                fprintf(stderr, "vi: option table size error (%d != %d)\n",
-                   sizeof optlist / sizeof optlist[0] - 1, O_OPTIONCOUNT);
+                   (int)(sizeof optlist / sizeof optlist[0] - 1),
+                   O_OPTIONCOUNT);
                exit(1);
        }
 



Home | Main Index | Thread Index | Old Index