summaryrefslogtreecommitdiff
path: root/src/commit2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit2.c')
-rw-r--r--src/commit2.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 5f70aa4..a324bab 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -943,7 +943,7 @@ validate_configuration(GNode *root_node, boolean mode, GSList **nodes_visited_co
struct Result result;
result._err_code = 0;
result._mode = (int)mode;
- result._data = (void*)nodes_visited_coll;
+ result._data = (void*)*nodes_visited_coll;
//handles both syntax and commit
result._action = syntax_act;
@@ -963,7 +963,7 @@ validate_configuration(GNode *root_node, boolean mode, GSList **nodes_visited_co
}
GList **c_tmp = (GList**)result._data;
- *nodes_visited_coll = (GSList*)*c_tmp;
+ *nodes_visited_coll = (GSList*)c_tmp;
return TRUE;
}
@@ -985,8 +985,7 @@ validate_func(GNode *node, gpointer data)
struct Result *result = (struct Result*)data;
//since this visits all working nodes, let's maintain a set of nodes to commit
- GList **c_tmp = (GList**)result->_data;
- GList *coll = *c_tmp;
+ GList *coll = (GList*)result->_data;
if (d->_path != NULL) {
char *buf = malloc(MAX_LENGTH_DIR_PATH*sizeof(char));
if (IS_DELETE(d->_operation)) {
@@ -996,7 +995,7 @@ validate_func(GNode *node, gpointer data)
strcat(buf,val);
}
coll = g_slist_append(coll,buf);
- result->_data = (void*)&coll;
+ result->_data = (void*)coll;
}
else if (IS_SET_OR_CREATE(d->_operation)) {
sprintf(buf,"+ %s",d->_path);
@@ -1005,7 +1004,7 @@ validate_func(GNode *node, gpointer data)
strcat(buf,val);
}
coll = g_slist_append(coll,buf);
- result->_data = (void*)&coll;
+ result->_data = (void*)coll;
}
}