Treat epoch as unsigned integer
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 26 May 2008 08:00:06 +0000 (11:00 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 26 May 2008 08:00:06 +0000 (11:00 +0300)
lib/hdrNVR.c
lib/header.h

index 68ab7e2..660b9d6 100644 (file)
@@ -16,7 +16,7 @@ int headerNVR(Header h, const char **np, const char **vp, const char **rp)
 }
 
 int headerNEVRA(Header h, const char **np,
-               int32_t **ep, const char **vp, const char **rp,
+               uint32_t **ep, const char **vp, const char **rp,
                const char **ap)
 {
     rpmTagType type;
@@ -89,7 +89,7 @@ char * headerGetEVR(Header h, const char ** np)
 {
     const char *n, *v, *r;
     char *evr = NULL;
-    int32_t *e;
+    uint32_t *e;
 
     (void) headerNEVRA(h, &n, &e, &v, &r, NULL);
     if (e) {
index cb0ebba..6ed7141 100644 (file)
@@ -429,7 +429,7 @@ int headerNVR(Header h,
  */
 int headerNEVRA(Header h,
                const char ** np,
-               int32_t ** ep,
+               uint32_t ** ep,
                const char ** vp,
                const char ** rp,
                const char ** ap);