summaryrefslogtreecommitdiffstats
path: root/collection/collection.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-04-06 15:31:41 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-04-06 15:59:21 -0400
commit8fc0b32ffa899a5cf33bee498388ed452042ccd2 (patch)
tree99de838b63ea8a2d08d7223cf6be935fa36f2c2a /collection/collection.c
parente54786d970c3a4643644b99f7b5f0d4332d7db5d (diff)
downloadding-libs-8fc0b32ffa899a5cf33bee498388ed452042ccd2.tar.gz
ding-libs-8fc0b32ffa899a5cf33bee498388ed452042ccd2.tar.xz
ding-libs-8fc0b32ffa899a5cf33bee498388ed452042ccd2.zip
Clean up a lot of warnings in Collection and INI parser
Diffstat (limited to 'collection/collection.c')
-rw-r--r--collection/collection.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/collection/collection.c b/collection/collection.c
index e393ae3..4a5b504 100644
--- a/collection/collection.c
+++ b/collection/collection.c
@@ -303,7 +303,7 @@ static struct collection_item *add_property(struct collection_item *collection,
int type,
int *error)
{
- struct collection_item *item;
+ struct collection_item *item = (struct collection_item *) NULL;
struct collection_item *acceptor = (struct collection_item *)(NULL);
TRACE_FLOW_STRING("add_property","Entry.");
@@ -734,7 +734,6 @@ static int find_item_and_do(struct collection_item *ci,
static int update_current_item(struct collection_item *current,
struct update_property *update_data)
{
- int error = EOK;
TRACE_FLOW_STRING("update_current_item","Entry");
/* If type is different or same but it is string or binary we need to replace the storage */
@@ -1468,7 +1467,6 @@ int get_reference_from_item(struct collection_item *ci,
{
struct collection_header *header;
struct collection_item *subcollection = (struct collection_item *)(NULL);
- int error = EOK;
TRACE_FLOW_STRING("get_reference_from_item","Entry.");
@@ -1878,8 +1876,6 @@ int modify_item(struct collection_item *item,
void *data,
int length)
{
- int error = EOK;
-
TRACE_FLOW_STRING("modify_item","Entry");
if((item == (struct collection_item *)(NULL)) ||
@@ -2054,7 +2050,6 @@ inline int modify_double_item(struct collection_item *item,
/* Grow iteration stack */
static int grow_stack(struct collection_iterator *iterator, unsigned desired)
{
- int error;
int grow_by = 0;
struct collection_item **temp;