summaryrefslogtreecommitdiffstats
path: root/libcnary/node.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-13 01:12:36 +0100
committerGravatar Nikias Bassen2013-12-13 01:12:36 +0100
commit39b3f63d2bf4a8f5e4b6ecf601cb00d3ff0190b7 (patch)
treeee9dad95dd9f89f21ebd3b906b3a14e60102834d /libcnary/node.c
parenta798afc8b5b00a43f4b121168e0419df2d398338 (diff)
downloadlibplist-39b3f63d2bf4a8f5e4b6ecf601cb00d3ff0190b7.tar.gz
libplist-39b3f63d2bf4a8f5e4b6ecf601cb00d3ff0190b7.tar.bz2
libcnary: silence two compiler warnings
Diffstat (limited to 'libcnary/node.c')
-rw-r--r--libcnary/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcnary/node.c b/libcnary/node.c
index 0a8f414..46532aa 100644
--- a/libcnary/node.c
+++ b/libcnary/node.c
@@ -121,7 +121,7 @@ int node_insert(node_t* parent, unsigned int index, node_t* child)
}
void node_debug(node_t* node) {
- int i = 0;
+ unsigned int i = 0;
node_t* current = NULL;
node_iterator_t* iter = NULL;
for(i = 0; i < node->depth; i++) {
@@ -155,7 +155,7 @@ unsigned int node_n_children(struct node_t* node)
node_t* node_nth_child(struct node_t* node, unsigned int n)
{
if (!node || !node->children || !node->children->begin) return NULL;
- int index = 0;
+ unsigned int index = 0;
int found = 0;
node_t *ch;
for (ch = node_first_child(node); ch; ch = node_next_sibling(ch)) {