Index: trunk/debs/squid/redirector.c |
— | — | @@ -20,21 +20,11 @@ |
21 | 21 | |
22 | 22 | struct IN_BUFF { |
23 | 23 | char *url; |
24 | | - char *src_address; |
25 | | - char *ident; |
26 | | - char *method; |
27 | 24 | }; |
28 | 25 | |
29 | 26 | int load_in_buff(char *buff, struct IN_BUFF *in_buff) { |
30 | 27 | in_buff->url = strtok(buff, " "); |
31 | | - in_buff->src_address = strtok(NULL, " "); |
32 | | - in_buff->ident= strtok(NULL, " "); |
33 | | - in_buff->method= strtok(NULL, " \n");; |
34 | 28 | |
35 | | - if (!in_buff->src_address || !in_buff->ident || !in_buff->method) { |
36 | | - return 1; |
37 | | - } |
38 | | - |
39 | 29 | if(strlen(in_buff->url) <= 4) { |
40 | 30 | return 1; |
41 | 31 | } |
— | — | @@ -104,7 +94,7 @@ |
105 | 95 | if (rc < 0) { |
106 | 96 | switch(rc) { |
107 | 97 | case PCRE_ERROR_NOMATCH: |
108 | | - printf("%s\n", in_buff.url); |
| 98 | + printf("%s", in_buff.url); |
109 | 99 | fflush(stdout); |
110 | 100 | |
111 | 101 | break; |