summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/package.c')
-rw-r--r--lib/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/package.c b/lib/package.c
index d71953e82..b737d9fdb 100644
--- a/lib/package.c
+++ b/lib/package.c
@@ -101,7 +101,6 @@ static rpmRC readPackageHeaders(FD_t fd,
struct rpmlead * lead;
char * defaultPrefix;
struct stat sb;
- int_32 true = 1;
rpmRC rc;
hdr = hdrPtr ? hdrPtr : &hdrBlock;
@@ -175,9 +174,10 @@ static rpmRC readPackageHeaders(FD_t fd,
/* XXX binary rpms always have RPMTAG_SOURCERPM, source rpms do not */
if (lead->type == RPMLEAD_SOURCE) {
+ int_32 one = 1;
if (!headerIsEntry(*hdr, RPMTAG_SOURCEPACKAGE))
(void)headerAddEntry(*hdr, RPMTAG_SOURCEPACKAGE, RPM_INT32_TYPE,
- &true, 1);
+ &one, 1);
} else if (lead->major < 4) {
/* Retrofit "Provide: name = EVR" for binary packages. */
providePackageNVR(*hdr);