summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 16:18:22 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 16:18:22 +0300
commitaf57879ea050c7258c92a6aef840dd5da51ccbd3 (patch)
treedcff2896190bc013e56c9a3cf27d5c5652ca61a7
parent312ceee39240c321a0cb8f1cc7aad939477b9699 (diff)
downloadrpm-af57879ea050c7258c92a6aef840dd5da51ccbd3.tar.gz
rpm-af57879ea050c7258c92a6aef840dd5da51ccbd3.tar.bz2
rpm-af57879ea050c7258c92a6aef840dd5da51ccbd3.zip
Remove bunch of double consts in librpmbuild
-rw-r--r--build/files.c2
-rw-r--r--build/parseChangelog.c2
-rw-r--r--build/parseSpec.c2
-rw-r--r--build/rpmfc.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/build/files.c b/build/files.c
index bf9c527f0..bb99c00fe 100644
--- a/build/files.c
+++ b/build/files.c
@@ -232,7 +232,7 @@ static char *strtokWithQuotes(char *s, const char *delim)
/**
*/
typedef const struct VFA {
- const char const * attribute;
+ const char * attribute;
int neg; /* XXX unused */
int flag;
} VFA_t;
diff --git a/build/parseChangelog.c b/build/parseChangelog.c
index b727b907d..e34f14842 100644
--- a/build/parseChangelog.c
+++ b/build/parseChangelog.c
@@ -40,7 +40,7 @@ static int dateToTimet(const char * datestr, time_t * secs)
static const char * const months[] =
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", NULL };
- static const char const lengths[] =
+ static const char lengths[] =
{ 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
memset(&time, 0, sizeof(time));
diff --git a/build/parseSpec.c b/build/parseSpec.c
index 447d2e7fe..98aa3faa2 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -35,7 +35,7 @@ static const struct PartRec {
int part;
size_t len;
const char * token;
-} const partList[] = {
+} partList[] = {
{ PART_PREAMBLE, LEN_AND_STR("%package")},
{ PART_PREP, LEN_AND_STR("%prep")},
{ PART_BUILD, LEN_AND_STR("%build")},
diff --git a/build/rpmfc.c b/build/rpmfc.c
index e278edf0b..4c59a9537 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -516,7 +516,7 @@ assert(EVR != NULL);
}
/* Only used for elf coloring and controlling RPMTAG_FILECLASS inclusion now */
-static const struct rpmfcTokens_s const rpmfcTokens[] = {
+static const struct rpmfcTokens_s rpmfcTokens[] = {
{ "directory", RPMFC_INCLUDE },
{ "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE },