Mark another pile of header_magic duplicates as read-only
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Mar 2008 06:15:03 +0000 (08:15 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Mar 2008 06:15:03 +0000 (08:15 +0200)
lib/package.c
lib/rpmchecksig.c
lib/rpmlead.c
lib/signature.c

index 4d0d67c..66af9e8 100644 (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 */
index 0aa3414..daf7927 100644 (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
 };
 
index 1c82f02..7991774 100644 (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
 };
 
index 42903ea..d4b2fc8 100644 (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
 };