On Feb 7, 2008, at 9:12 AM, Peter Kalbus wrote:
> I just tried to get rpm-5.0.2 compiled for QNX. But there are some
> fixes from the main branch missing:
>
> http://rpm5.org/cvs/chngview?cn=9423 (makedev 3 parameter)
Added.
> http://rpm5.org/cvs/chngview?cn=9465 (u_int32_t / uint32_t)
(aside) It's just a steenkin' cast, that ultimately does not matter,
_BUT_ I have
to fiddle these casts when checking rpm sources using splint, and I'd
rather not get into a endlessly tedious repair loop ...
Berkeley DB db.h has this:
/* Key/data structure -- a Data-Base Thang. */
struct __db_dbt {
void *data; /* Key/data */
u_int32_t size; /* key/data length */
u_int32_t ulen; /* RO: length of user
buffer. */
u_int32_t dlen; /* RO: get/put record
length. */
u_int32_t doff; /* RO: get/put record
offset. */
u_int32_t size;
on linux/i386.
What is the data type in db.h on QNX? if "u_int32_t" is being used in
db.h,
then changing the cast is not the right fix in rpmdb.c.
73 de Jeff
Received on Thu Feb 7 15:41:36 2008