- Headers must always fit into memory which is not true of rpm_loff_t,
and the real size is arbitrarily capped far below even that limit.
headerSizeof() uses unsigned int here, just use that...
- Doesn't affect the calculations, just type pedantry...
rpm_color_t color; /*!< Color bit(s) from package dependencies. */
rpm_loff_t pkgFileSize; /*!< No. of bytes in package file (approx). */
- rpm_loff_t headerSize; /*!< No. of bytes in package header */
+ unsigned int headerSize; /*!< No. of bytes in package header */
fnpyKey key; /*!< (TR_ADDED) Retrieval key. */
rpmRelocation * relocs; /*!< (TR_ADDED) Payload file relocations. */
return (te != NULL ? te->pkgFileSize : 0);
}
-rpm_loff_t rpmteHeaderSize(rpmte te) {
+unsigned int rpmteHeaderSize(rpmte te) {
return (te != NULL ? te->headerSize : 0);
}
* @return size in bytes of package file.
*/
RPM_GNUC_INTERNAL
-rpm_loff_t rpmteHeaderSize(rpmte te);
+unsigned int rpmteHeaderSize(rpmte te);
#endif /* _RPMTE_INTERNAL_H */