@matheusbsbs / matheus-bagliano / commits / c3df856842
Fork 0

GIT: Fix compilation error in connect.c

Fix compilation error for gcc-2.95. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

YOSHIFUJI Hideaki / 吉藤英明 committed Nov 22, 2005 at 12:18 UTC c3df8568424684bbcc7df7722eb3ec34bdae8b2d
1 file changed +5 -4
connect.c
+5 -4
@@ -455,6 +455,10 @@ static int rhost_len;
455 static int git_proxy_command_options(const char *var, const char *value)
456 {
457 if (!strcmp(var, "core.gitproxy")) {
458 + const char *for_pos;
459 + int matchlen = -1;
460 + int hostlen;
461 +
462 if (git_proxy_command)
463 return 0;
464 /* [core]
@@ -463,10 +467,7 @@ static int git_proxy_command_options(const char *var, const char *value)
467 * gitproxy = netcatter-2 for sample.xz
468 * gitproxy = netcatter-default
469 */
466 - const char *for_pos = strstr(value, " for ");
467 - int matchlen = -1;
468 - int hostlen;
469 -
470 + for_pos = strstr(value, " for ");
471 if (!for_pos)
472 /* matches everybody */
473 matchlen = strlen(value);