r93224 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93223‎ | r93224 | r93225 >
Date:17:36, 26 July 2011
Author:platonides
Status:ok
Tags:
Comment:
Remove unused variable.
Move the setbuf() near the commented setvbuf()
Modified paths:
  • /trunk/debs/squid/redirector.c (modified) (history)

Diff [purge]

Index: trunk/debs/squid/redirector.c
@@ -46,13 +46,11 @@
4747 pcre *re;
4848 const char *error;
4949 char *pattern;
50 - unsigned char *name_table;
5150 int erroffset;
5251 int ovector[OVECCOUNT];
5352 int subject_length;
5453 int rc, i;
5554 char buff[MAX_BUFF];
56 - setbuf(stdout, NULL);
5755
5856 struct IN_BUFF in_buff;
5957 pattern = "^http:\\/\\/(\\w+)\\.wikipedia\\.org[:\\d]*\\/(.*)";
@@ -68,6 +66,7 @@
6967
7068 /* make standard output line buffered */
7169 //setvbuf(stdout, NULL, _IOLBF, 0);
 70+ setbuf(stdout, NULL);
7271
7372 re = pcre_compile(
7473 pattern, /* the pattern */

Status & tagging log