aboutsummaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-04-30 23:27:11 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-04-30 23:27:11 +0200
commitbd8e73aad283611c096f07e0fc16aa4985f9f2eb (patch)
tree9ce9d9d41387a62dd4cc3b88669a991244d7b8b7 /src/tree.c
parentba7c93085b419d1453dfb722b570245c4a725c83 (diff)
downloaddns-bd8e73aad283611c096f07e0fc16aa4985f9f2eb.tar.gz
implemented database
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tree.c b/src/tree.c
index 4395c81..974a5bb 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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;