diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-06-23 07:43:00 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-06-23 07:43:00 +0200 |
commit | d200c07d66ffb61e4cceb8e6c4a37d8d264cb918 (patch) | |
tree | 51dce7e0e2f7850b63ae796faed27f5072a16e3e /src | |
parent | c84c3f459919aa8db2a24c8461aab9e547be961f (diff) | |
download | dns-d200c07d66ffb61e4cceb8e6c4a37d8d264cb918.tar.gz |
warning fix
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 ) |