Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time Overly aggressive long->zic_t conversion.



details:   https://anonhg.NetBSD.org/src/rev/a33588e5b620
branches:  trunk
changeset: 785282:a33588e5b620
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 06 18:40:19 2013 +0000

description:
Overly aggressive long->zic_t conversion.
I should add zic_t to the dictionary instead.

diffstat:

 lib/libc/time/zic.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 88b67c8aca7c -r a33588e5b620 lib/libc/time/zic.c
--- a/lib/libc/time/zic.c       Wed Mar 06 18:21:41 2013 +0000
+++ b/lib/libc/time/zic.c       Wed Mar 06 18:40:19 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zic.c,v 1.39 2013/03/06 18:21:18 christos Exp $        */
+/*     $NetBSD: zic.c,v 1.40 2013/03/06 18:40:19 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.39 2013/03/06 18:21:18 christos Exp $");
+__RCSID("$NetBSD: zic.c,v 1.40 2013/03/06 18:40:19 christos Exp $");
 #endif /* !defined lint */
 
 #include "version.h"
@@ -792,7 +792,7 @@
                        break;
                cp = strchr(buf, '\n');
                if (cp == NULL) {
-                       error(_("line too zic_t"));
+                       error(_("line too long"));
                        exit(EXIT_FAILURE);
                }
                *cp = '\0';
@@ -2574,7 +2574,7 @@
        }
        i = strlen(string) + 1;
        if (charcnt + i > TZ_MAX_CHARS) {
-               error(_("too many, or too zic_t, time zone abbreviations"));
+               error(_("too many, or too long, time zone abbreviations"));
                exit(EXIT_FAILURE);
        }
        (void)strncpy(&chars[charcnt], string, sizeof(chars) - charcnt - 1);



Home | Main Index | Thread Index | Old Index