--------------------- PatchSet 11662 Date: 2007/09/15 15:34:51 Author: hno Branch: SQUID_2_6 Tag: (none) Log: Author: serassio MFC: Fix compile error with old GCC 2.x or other ANSI-C compilers before C99 Members: src/cf_gen.c:1.50.2.1->1.50.2.2 Index: squid/src/cf_gen.c =================================================================== RCS file: /cvsroot/squid/squid/src/cf_gen.c,v retrieving revision 1.50.2.1 retrieving revision 1.50.2.2 diff -u -r1.50.2.1 -r1.50.2.2 --- squid/src/cf_gen.c 5 Sep 2007 21:50:15 -0000 1.50.2.1 +++ squid/src/cf_gen.c 15 Sep 2007 15:34:51 -0000 1.50.2.2 @@ -1,6 +1,6 @@ /* - * $Id: cf_gen.c,v 1.50.2.1 2007/09/05 21:50:15 hno Exp $ + * $Id: cf_gen.c,v 1.50.2.2 2007/09/15 15:34:51 hno Exp $ * * DEBUG: none Generate squid.conf.default and cf_parser.h * AUTHOR: Max Okumoto @@ -177,9 +177,10 @@ while ((NULL != fgets(buff, MAX_LINE, fp))) { const char *type = strtok(buff, WS); const char *dep; + Type *t; if (!type || type[0] == '#') continue; - Type *t = (Type *) xcalloc(1, sizeof(*t)); + t = (Type *) xcalloc(1, sizeof(*t)); t->name = xstrdup(type); while ((dep = strtok(NULL, WS)) != NULL) { TypeDep *d = (TypeDep *) xcalloc(1, sizeof(*dep));