fixed handling of build time
authormarc <devnull@localhost>
Wed, 27 Dec 1995 20:59:07 +0000 (20:59 +0000)
committermarc <devnull@localhost>
Wed, 27 Dec 1995 20:59:07 +0000 (20:59 +0000)
CVS patchset: 113
CVS date: 1995/12/27 20:59:07

query.c

diff --git a/query.c b/query.c
index 61a5777..5c5b2cb 100644 (file)
--- a/query.c
+++ b/query.c
@@ -40,7 +40,7 @@ void printHeader(Header h, int queryFlags) {
            getEntry(h, RPMTAG_SIZE, &type, (void **) &size, &count);
            getEntry(h, RPMTAG_BUILDTIME, &type, (void **) &pBuildDate, &count);
 
-           tstruct = localtime(&pBuildDate);
+           tstruct = localtime((time_t *) pBuildDate);
            strftime(buildDateStr, sizeof(buildDateStr) - 1, "%c", tstruct);
           
            printf("Name        : %-27s Distribution: %s\n",