diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-02-05 12:58:05 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-02-05 12:58:05 +0200 |
commit | e5116e43d753114f9966ff42f507310a61f620eb (patch) | |
tree | a28fcaae0bb5346cc69eeb7a0e1641403facdff9 /build | |
parent | e7ac5fb183c4c0e5762d7f18c1c19c03fcdc2b3c (diff) | |
download | librpm-tizen-e5116e43d753114f9966ff42f507310a61f620eb.tar.gz librpm-tizen-e5116e43d753114f9966ff42f507310a61f620eb.tar.bz2 librpm-tizen-e5116e43d753114f9966ff42f507310a61f620eb.zip |
Add rpm_rdev_t type for rdev entries
- rdev is 16bit whereas dev is 32bit, eww...
Diffstat (limited to 'build')
-rw-r--r-- | build/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/files.c b/build/files.c index 985830a1b..0709d9b3e 100644 --- a/build/files.c +++ b/build/files.c @@ -1153,8 +1153,8 @@ static void genCpioListAndHeader(FileList fl, (void) headerAddOrAppendEntry(h, RPMTAG_FILEMODES, RPM_INT16_TYPE, &(flp->fl_mode), 1); } - if (sizeof(flp->fl_rdev) != sizeof(uint16_t)) { - uint16_t prdev = (uint16_t)flp->fl_rdev; + if (sizeof(flp->fl_rdev) != sizeof(rpm_rdev_t)) { + rpm_rdev_t prdev = (rpm_rdev_t)flp->fl_rdev; (void) headerAddOrAppendEntry(h, RPMTAG_FILERDEVS, RPM_INT16_TYPE, &(prdev), 1); } else { |