Mark another pile of header_magic duplicates as read-only

This commit is contained in:
Panu Matilainen 2008-03-07 08:15:03 +02:00
parent 8e7bc88eda
commit 2e3972aebf
4 changed files with 7 additions and 5 deletions

View File

@ -28,14 +28,15 @@ static unsigned int nkeyids = 0;
static unsigned int nextkeyid = 0;
static unsigned int * keyids;
static unsigned char header_magic[8] = {
/* XXX FIXME: these are doubled here and header.c and .. */
static unsigned char const header_magic[8] = {
0x8e, 0xad, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00
};
/**
* Alignment needs (and sizeof scalars types) for internal rpm data types.
*/
static int typeAlign[16] = {
static int const typeAlign[16] = {
1, /*!< RPM_NULL_TYPE */
1, /*!< RPM_CHAR_TYPE */
1, /*!< RPM_INT8_TYPE */

View File

@ -454,7 +454,7 @@ rpmtsClean(ts);
return res;
}
static unsigned char header_magic[8] = {
static unsigned char const header_magic[8] = {
0x8e, 0xad, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00
};

View File

@ -15,7 +15,7 @@
#include "debug.h"
static unsigned char lead_magic[] = {
static unsigned char const lead_magic[] = {
RPMLEAD_MAGIC0, RPMLEAD_MAGIC1, RPMLEAD_MAGIC2, RPMLEAD_MAGIC3
};

View File

@ -124,7 +124,8 @@ static inline rpmRC printSize(FD_t fd, size_t siglen, size_t pad, rpm_off_t data
return RPMRC_OK;
}
static unsigned char header_magic[8] = {
/* XXX sigh yet another duplicate.. */
static unsigned char const header_magic[8] = {
0x8e, 0xad, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00
};