|
|
|
@ -41,7 +41,7 @@ comp(const void * _a, const void * _b) |
|
|
|
HttpHeader |
|
|
|
httpHeaderGet(const HttpHeader * root, const char * name) |
|
|
|
{ |
|
|
|
struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, NULL}; |
|
|
|
struct c_HttpHeader search = {sdbm((const unsigned char*)name), NULL, {}, 0}; |
|
|
|
HttpHeader * found = tfind(&search, (void**)root, comp); |
|
|
|
|
|
|
|
return (NULL != found)? *found : NULL; |
|
|
|
|