pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files pkg_install-20081002:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6262d4dde03
branches:  trunk
changeset: 547788:d6262d4dde03
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 02 20:46:56 2008 +0000

description:
pkg_install-20081002:
Explicitly cast time_t values to long and print them as such.
Reported by bjs@.

diffstat:

 pkgtools/pkg_install/files/admin/audit.c |  12 ++++++------
 pkgtools/pkg_install/files/lib/version.h |   4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r 409e548fd74d -r d6262d4dde03 pkgtools/pkg_install/files/admin/audit.c
--- a/pkgtools/pkg_install/files/admin/audit.c  Thu Oct 02 19:08:32 2008 +0000
+++ b/pkgtools/pkg_install/files/admin/audit.c  Thu Oct 02 20:46:56 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audit.c,v 1.9 2008/09/16 13:32:58 joerg Exp $  */
+/*     $NetBSD: audit.c,v 1.10 2008/10/02 20:46:56 joerg Exp $ */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -8,7 +8,7 @@
 #include <sys/cdefs.h>
 #endif
 #ifndef lint
-__RCSID("$NetBSD: audit.c,v 1.9 2008/09/16 13:32:58 joerg Exp $");
+__RCSID("$NetBSD: audit.c,v 1.10 2008/10/02 20:46:56 joerg Exp $");
 #endif
 
 /*-
@@ -254,11 +254,11 @@
                if (now < 0)
                        warnx("pkg-vulnerabilities is from the future");
                else if (now > 86400 * 7)
-                       warnx("pkg-vulnerabilities is out of day (%d days old)",
-                           now / 86400);
+                       warnx("pkg-vulnerabilities is out of day (%ld days old)",
+                           (long)(now / 86400));
                else if (verbose >= 2)
-                       warnx("pkg-vulnerabilities is %d day%s old",
-                           now / 86400, now / 86400 == 1 ? "" : "s");
+                       warnx("pkg-vulnerabilities is %ld day%s old",
+                           (long)(now / 86400), now / 86400 == 1 ? "" : "s");
        }
 
        pv = read_pkg_vulnerabilities(pkg_vulnerabilities_file, 0, check_signature);
diff -r 409e548fd74d -r d6262d4dde03 pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h  Thu Oct 02 19:08:32 2008 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h  Thu Oct 02 20:46:56 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: version.h,v 1.105 2008/09/17 15:21:30 joerg Exp $      */
+/*     $NetBSD: version.h,v 1.106 2008/10/02 20:46:56 joerg Exp $      */
 
 /*
  * Copyright (c) 2001 Thomas Klausner.  All rights reserved.
@@ -27,6 +27,6 @@
 #ifndef _INST_LIB_VERSION_H_
 #define _INST_LIB_VERSION_H_
 
-#define PKGTOOLS_VERSION "20080916"
+#define PKGTOOLS_VERSION "20081002"
 
 #endif /* _INST_LIB_VERSION_H_ */



Home | Main Index | Thread Index | Old Index