aboutsummaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 899514e..5706c4c 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -6,6 +6,7 @@
#include "tree.h"
+static int string_compare ( char* _1, char* _2 );
int tree_insert ( struct tree_node** _root, char* _key, void* _data )
{
@@ -60,7 +61,7 @@ int tree_destroy ( struct tree_node** _root, uint8_t _options )
return 0;
}
-int string_compare ( char* _1, char* _2 )
+static int string_compare ( char* _1, char* _2 )
{
if ( !_1 || !_2 )
return 99;
@@ -89,6 +90,7 @@ int string_compare ( char* _1, char* _2 )
return -1;
//TODO WARN may reach end of non-void function
+ return 99;
}
void* tree_get ( struct tree_node** _root, char* _query )