aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-23 07:43:00 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-23 07:43:00 +0200
commitd200c07d66ffb61e4cceb8e6c4a37d8d264cb918 (patch)
tree51dce7e0e2f7850b63ae796faed27f5072a16e3e /src
parentc84c3f459919aa8db2a24c8461aab9e547be961f (diff)
downloaddns-d200c07d66ffb61e4cceb8e6c4a37d8d264cb918.tar.gz
warning fix
Diffstat (limited to 'src')
-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 )