Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time use correct types.
details: https://anonhg.NetBSD.org/src/rev/fad2449e5970
branches: trunk
changeset: 785196:fad2449e5970
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 02 21:39:48 2013 +0000
description:
use correct types.
diffstat:
lib/libc/time/zic.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r 6039d47416f9 -r fad2449e5970 lib/libc/time/zic.c
--- a/lib/libc/time/zic.c Sat Mar 02 21:39:14 2013 +0000
+++ b/lib/libc/time/zic.c Sat Mar 02 21:39:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: zic.c,v 1.35 2013/03/02 21:24:28 christos Exp $ */
+/* $NetBSD: zic.c,v 1.36 2013/03/02 21:39:48 christos Exp $ */
/*
** This file is in the public domain, so clarified as of
** 2006-07-17 by Arthur David Olson.
@@ -10,7 +10,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: zic.c,v 1.35 2013/03/02 21:24:28 christos Exp $");
+__RCSID("$NetBSD: zic.c,v 1.36 2013/03/02 21:39:48 christos Exp $");
#endif /* !defined lint */
#include "version.h"
@@ -160,8 +160,8 @@
static int leapminyear;
static int leapmaxyear;
static int linenum;
-static int max_abbrvar_len;
-static int max_format_len;
+static size_t max_abbrvar_len;
+static size_t max_format_len;
static int max_year;
static int min_year;
static int noise;
@@ -1598,7 +1598,7 @@
thistypecnt = 0;
for (i = 0; i < typecnt; ++i)
typemap[i] = writetype[i] ? thistypecnt++ : -1;
- for (i = 0; i < sizeof indmap / sizeof indmap[0]; ++i)
+ for (i = 0; i < (int)(sizeof indmap / sizeof indmap[0]); ++i)
indmap[i] = -1;
thischarcnt = 0;
for (i = 0; i < typecnt; ++i) {
@@ -1928,8 +1928,8 @@
char * startbuf;
char * ab;
char * envvar;
- int max_abbr_len;
- int max_envvar_len;
+ size_t max_abbr_len;
+ size_t max_envvar_len;
int prodstic; /* all rules are min to max */
max_abbr_len = 2 + max_format_len + max_abbrvar_len;
Home |
Main Index |
Thread Index |
Old Index