projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa7e15c
)
Eliminate bogus const from expression value
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 24 Mar 2008 17:02:44 +0000
(19:02 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 24 Mar 2008 17:02:44 +0000
(19:02 +0200)
build/expression.c
patch
|
blob
|
history
diff --git
a/build/expression.c
b/build/expression.c
index
8ddfab2
..
df3307b
100644
(file)
--- a/
build/expression.c
+++ b/
build/expression.c
@@
-33,7
+33,7
@@
typedef struct _value {
enum { VALUE_TYPE_INTEGER, VALUE_TYPE_STRING } type;
union {
- c
onst c
har *s;
+ char *s;
int i;
} data;
} *Value;
@@
-52,7
+52,7
@@
static Value valueMakeInteger(int i)
/**
*/
-static Value valueMakeString(c
onst c
har *s)
+static Value valueMakeString(char *s)
{
Value v;
@@
-68,7
+68,7
@@
static void valueFree( Value v)
{
if (v) {
if (v->type == VALUE_TYPE_STRING)
- v->data.s = _
const
free(v->data.s);
+ v->data.s = _free(v->data.s);
v = _free(v);
}
}