summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/files.c6
-rw-r--r--build/names.c4
-rw-r--r--build/parseChangelog.c2
-rw-r--r--build/rpmbuild.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/build/files.c b/build/files.c
index c700a0399..1c99c123a 100644
--- a/build/files.c
+++ b/build/files.c
@@ -233,7 +233,7 @@ static void timeCheck(int tc, Header h)
{
HGE_t hge = (HGE_t)headerGetEntryMinMemory;
HFD_t hfd = headerFreeData;
- int * mtime;
+ rpm_time_t * mtime;
const char ** files;
rpm_tagtype_t fnt;
rpm_count_t count, x;
@@ -1137,8 +1137,8 @@ static void genCpioListAndHeader(FileList fl,
&(flp->uname), 1);
(void) headerAddOrAppendEntry(h, RPMTAG_FILEGROUPNAME, RPM_STRING_ARRAY_TYPE,
&(flp->gname), 1);
- if (sizeof(flp->fl_mtime) != sizeof(uint32_t)) {
- uint32_t mtime = (uint32_t)flp->fl_mtime;
+ if (sizeof(flp->fl_mtime) != sizeof(rpm_time_t)) {
+ rpm_time_t mtime = (rpm_time_t)flp->fl_mtime;
(void) headerAddOrAppendEntry(h, RPMTAG_FILEMTIMES, RPM_INT32_TYPE,
&(mtime), 1);
} else {
diff --git a/build/names.c b/build/names.c
index ccbeb29b9..0917a3c19 100644
--- a/build/names.c
+++ b/build/names.c
@@ -175,9 +175,9 @@ gid_t getGidS(const char *gname)
return gids[gid_used++];
}
-int32_t * getBuildTime(void)
+rpm_time_t * getBuildTime(void)
{
- static int32_t buildTime[1];
+ static rpm_time_t buildTime[1];
if (buildTime[0] == 0)
buildTime[0] = (int32_t) time(NULL);
diff --git a/build/parseChangelog.c b/build/parseChangelog.c
index 15734b86d..740ef2292 100644
--- a/build/parseChangelog.c
+++ b/build/parseChangelog.c
@@ -15,7 +15,7 @@
void addChangelogEntry(Header h, time_t time, const char *name, const char *text)
{
- int32_t mytime = time; /* XXX convert to header representation */
+ rpm_time_t mytime = time; /* XXX convert to header representation */
if (headerIsEntry(h, RPMTAG_CHANGELOGTIME)) {
(void) headerAppendEntry(h, RPMTAG_CHANGELOGTIME, RPM_INT32_TYPE,
&mytime, 1);
diff --git a/build/rpmbuild.h b/build/rpmbuild.h
index 3913f67c3..17e84d514 100644
--- a/build/rpmbuild.h
+++ b/build/rpmbuild.h
@@ -143,7 +143,7 @@ extern const char * buildHost(void) ;
* Return build time stamp.
* @return build time stamp
*/
-extern int32_t * getBuildTime(void) ;
+extern rpm_time_t * getBuildTime(void) ;
/** \ingroup rpmbuild
* Read next line from spec file.