r93256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93255‎ | r93256 | r93257 >
Date:07:17, 27 July 2011
Author:asher
Status:deferred
Tags:
Comment:
stripping needless bits
Modified paths:
  • /trunk/debs/squid/redirector.c (modified) (history)

Diff [purge]

Index: trunk/debs/squid/redirector.c
@@ -20,21 +20,11 @@
2121
2222 struct IN_BUFF {
2323 char *url;
24 - char *src_address;
25 - char *ident;
26 - char *method;
2724 };
2825
2926 int load_in_buff(char *buff, struct IN_BUFF *in_buff) {
3027 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");;
3428
35 - if (!in_buff->src_address || !in_buff->ident || !in_buff->method) {
36 - return 1;
37 - }
38 -
3929 if(strlen(in_buff->url) <= 4) {
4030 return 1;
4131 }
@@ -104,7 +94,7 @@
10595 if (rc < 0) {
10696 switch(rc) {
10797 case PCRE_ERROR_NOMATCH:
108 - printf("%s\n", in_buff.url);
 98+ printf("%s", in_buff.url);
10999 fflush(stdout);
110100
111101 break;

Status & tagging log