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>maint
parent
d6ebd2590c
commit
c3df856842
|
@ -455,6 +455,10 @@ static int rhost_len;
|
||||||
static int git_proxy_command_options(const char *var, const char *value)
|
static int git_proxy_command_options(const char *var, const char *value)
|
||||||
{
|
{
|
||||||
if (!strcmp(var, "core.gitproxy")) {
|
if (!strcmp(var, "core.gitproxy")) {
|
||||||
|
const char *for_pos;
|
||||||
|
int matchlen = -1;
|
||||||
|
int hostlen;
|
||||||
|
|
||||||
if (git_proxy_command)
|
if (git_proxy_command)
|
||||||
return 0;
|
return 0;
|
||||||
/* [core]
|
/* [core]
|
||||||
|
@ -463,10 +467,7 @@ static int git_proxy_command_options(const char *var, const char *value)
|
||||||
* gitproxy = netcatter-2 for sample.xz
|
* gitproxy = netcatter-2 for sample.xz
|
||||||
* gitproxy = netcatter-default
|
* gitproxy = netcatter-default
|
||||||
*/
|
*/
|
||||||
const char *for_pos = strstr(value, " for ");
|
for_pos = strstr(value, " for ");
|
||||||
int matchlen = -1;
|
|
||||||
int hostlen;
|
|
||||||
|
|
||||||
if (!for_pos)
|
if (!for_pos)
|
||||||
/* matches everybody */
|
/* matches everybody */
|
||||||
matchlen = strlen(value);
|
matchlen = strlen(value);
|
||||||
|
|
Loading…
Reference in New Issue