aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/rpm.c16
-rw-r--r--archival/rpm2cpio.c18
2 files changed, 17 insertions, 17 deletions
diff --git a/archival/rpm.c b/archival/rpm.c
index e3f20ca35..eb2c0433b 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -82,10 +82,10 @@ enum rpm_functions_e {
82}; 82};
83 83
84typedef struct { 84typedef struct {
85 u_int32_t tag; /* 4 byte tag */ 85 uint32_t tag; /* 4 byte tag */
86 u_int32_t type; /* 4 byte type */ 86 uint32_t type; /* 4 byte type */
87 u_int32_t offset; /* 4 byte offset */ 87 uint32_t offset; /* 4 byte offset */
88 u_int32_t count; /* 4 byte count */ 88 uint32_t count; /* 4 byte count */
89} rpm_index; 89} rpm_index;
90 90
91static void *map; 91static void *map;
@@ -227,10 +227,10 @@ rpm_index **rpm_gettags(int fd, int *num_tags)
227 for (pass = 0; pass < 2; pass++) { /* 1st pass is the signature headers, 2nd is the main stuff */ 227 for (pass = 0; pass < 2; pass++) { /* 1st pass is the signature headers, 2nd is the main stuff */
228 struct { 228 struct {
229 char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ 229 char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */
230 u_int8_t version; /* 1 byte version number */ 230 uint8_t version; /* 1 byte version number */
231 u_int32_t reserved; /* 4 bytes reserved */ 231 uint32_t reserved; /* 4 bytes reserved */
232 u_int32_t entries; /* Number of entries in header (4 bytes) */ 232 uint32_t entries; /* Number of entries in header (4 bytes) */
233 u_int32_t size; /* Size of store (4 bytes) */ 233 uint32_t size; /* Size of store (4 bytes) */
234 } header; 234 } header;
235 rpm_index *tmpindex; 235 rpm_index *tmpindex;
236 int storepos; 236 int storepos;
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index 47f4e73cd..d0041a83c 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -31,21 +31,21 @@
31 31
32struct rpm_lead { 32struct rpm_lead {
33 unsigned char magic[4]; 33 unsigned char magic[4];
34 u_int8_t major, minor; 34 uint8_t major, minor;
35 u_int16_t type; 35 uint16_t type;
36 u_int16_t archnum; 36 uint16_t archnum;
37 char name[66]; 37 char name[66];
38 u_int16_t osnum; 38 uint16_t osnum;
39 u_int16_t signature_type; 39 uint16_t signature_type;
40 char reserved[16]; 40 char reserved[16];
41}; 41};
42 42
43struct rpm_header { 43struct rpm_header {
44 char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ 44 char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */
45 u_int8_t version; /* 1 byte version number */ 45 uint8_t version; /* 1 byte version number */
46 u_int32_t reserved; /* 4 bytes reserved */ 46 uint32_t reserved; /* 4 bytes reserved */
47 u_int32_t entries; /* Number of entries in header (4 bytes) */ 47 uint32_t entries; /* Number of entries in header (4 bytes) */
48 u_int32_t size; /* Size of store (4 bytes) */ 48 uint32_t size; /* Size of store (4 bytes) */
49}; 49};
50 50
51void skip_header(int rpm_fd) 51void skip_header(int rpm_fd)