summaryrefslogtreecommitdiff
path: root/ot_vector.c
diff options
context:
space:
mode:
authorerdgeist <>2009-01-15 23:01:36 +0000
committererdgeist <>2009-01-15 23:01:36 +0000
commit66c906d5d3c100e5fe1e6f088bd1ea17c5831894 (patch)
tree33eb4f386d14327277689e66143d5e607b3eef98 /ot_vector.c
parent4ced0484abae55546e04954b3dafad46f9db348a (diff)
Add comments, rename our struct http_data h to cookie, all clientsockets to sock, all size_t from socket_recvs to byte_count. Make signal handler set default handler for the second SIGINT
Diffstat (limited to 'ot_vector.c')
-rw-r--r--ot_vector.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ot_vector.c b/ot_vector.c
index a69d9a5..cbb3fac 100644
--- a/ot_vector.c
+++ b/ot_vector.c
@@ -23,8 +23,6 @@ static int vector_compare_peer(const void *peer1, const void *peer2 ) {
23/* This function gives us a binary search that returns a pointer, even if 23/* This function gives us a binary search that returns a pointer, even if
24 no exact match is found. In that case it sets exactmatch 0 and gives 24 no exact match is found. In that case it sets exactmatch 0 and gives
25 calling functions the chance to insert data 25 calling functions the chance to insert data
26
27 NOTE: Minimal compare_size is 4, member_size must be a multiple of 4
28*/ 26*/
29void *binary_search( const void * const key, const void * base, const size_t member_count, const size_t member_size, 27void *binary_search( const void * const key, const void * base, const size_t member_count, const size_t member_size,
30 size_t compare_size, int *exactmatch ) { 28 size_t compare_size, int *exactmatch ) {