File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ int headers_recv(int fd, rr_data_t data) {
270
270
* Returns: 1 if OK, 0 in case of socket error
271
271
*/
272
272
int headers_send (int fd , rr_data_const_t data ) {
273
- hlist_t t ;
273
+ hlist_const_t t ;
274
274
char * buf ;
275
275
int i ;
276
276
int len ;
@@ -511,7 +511,7 @@ length_t http_has_body(rr_data_const_t request, rr_data_const_t response) {
511
511
rr_data_const_t current ;
512
512
length_t length ;
513
513
int nobody ;
514
- char * tmp ;
514
+ const char * tmp ;
515
515
516
516
/*
517
517
* Are we checking a complete req+res conversation or just the
@@ -640,7 +640,7 @@ int http_body_drop(int fd, rr_data_const_t response) {
640
640
*
641
641
* Return 1 = creds parsed OK, 0 = no creds, -1 = invalid creds
642
642
*/
643
- int http_parse_basic (hlist_t headers , const char * header , struct auth_s * tcreds ) {
643
+ int http_parse_basic (hlist_const_t headers , const char * header , struct auth_s * tcreds ) {
644
644
char * tmp = NULL ;
645
645
char * pos = NULL ;
646
646
char * buf = NULL ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ typedef long long int length_t;
39
39
extern int is_http_header (const char * src );
40
40
extern char * get_http_header_name (const char * src );
41
41
extern char * get_http_header_value (const char * src );
42
- extern int http_parse_basic (hlist_t headers , const char * header , struct auth_s * tcreds );
42
+ extern int http_parse_basic (hlist_const_t headers , const char * header , struct auth_s * tcreds );
43
43
extern int headers_recv (int fd , rr_data_t data );
44
44
extern int headers_send (int fd , rr_data_const_t data );
45
45
extern int tunnel (int cd , int sd );
You can’t perform that action at this time.
0 commit comments