diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-02 20:46:56 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-02 20:46:56 +0000 |
commit | 1e2d474b2b63592811e3f1f47efba7b31618f7d3 (patch) | |
tree | bbb579ba833a416fa7ff07cc00214d82866678cb /pkgtools/pkg_install/files/admin | |
parent | b4ce4a86e7153747a6e0d93745028555fb4a4e05 (diff) | |
download | pkgsrc-1e2d474b2b63592811e3f1f47efba7b31618f7d3.tar.gz |
pkg_install-20081002:
Explicitly cast time_t values to long and print them as such.
Reported by bjs@.
Diffstat (limited to 'pkgtools/pkg_install/files/admin')
-rw-r--r-- | pkgtools/pkg_install/files/admin/audit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgtools/pkg_install/files/admin/audit.c b/pkgtools/pkg_install/files/admin/audit.c index 67eb1222810..a8cf56239fe 100644 --- a/pkgtools/pkg_install/files/admin/audit.c +++ b/pkgtools/pkg_install/files/admin/audit.c @@ -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 @@ check_and_read_pkg_vulnerabilities(void) 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); |