diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-04-30 23:27:11 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-04-30 23:27:11 +0200 |
commit | bd8e73aad283611c096f07e0fc16aa4985f9f2eb (patch) | |
tree | 9ce9d9d41387a62dd4cc3b88669a991244d7b8b7 /src/tree.c | |
parent | ba7c93085b419d1453dfb722b570245c4a725c83 (diff) | |
download | dns-bd8e73aad283611c096f07e0fc16aa4985f9f2eb.tar.gz |
implemented database
Diffstat (limited to 'src/tree.c')
-rw-r--r-- | src/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ #include "tree.h" -static int string_compare ( char* _1, char* _2 ); +static int string_compare ( const char* _1, const char* _2 ); /** * ignore-case alphabetical string compare @@ -15,7 +15,7 @@ static int string_compare ( char* _1, char* _2 ); * -1 :: _1 < _2 * +1 :: _1 > _2 * */ -static int string_compare ( char* _1, char* _2 ) +static int string_compare ( const char* _1, const char* _2 ) { if ( !_1 || !_2 ) return 99; @@ -144,7 +144,7 @@ int tree_destroy ( struct tree_node** _root, uint8_t _options ) return 0; } -void* tree_get ( struct tree_node** _root, char* _query ) +void* tree_get ( struct tree_node** _root, const char* _query ) { struct tree_node** node = _root; |