Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
GIT: Fix compilation error in connect.c
author
YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@linux-ipv6.org>
Tue, 22 Nov 2005 03:18:23 +0000
(12:18 +0900)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 22 Nov 2005 04:51:22 +0000
(20:51 -0800)
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>
connect.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
d6ebd25
)
diff --git
a/connect.c
b/connect.c
index a4d6d356fd3dd3a4169b94a56f71cf5ccc0cbd89..7a417e5a73f3228af00d2e143b16e24004083341 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-455,6
+455,10
@@
static int rhost_len;
static int git_proxy_command_options(const char *var, const char *value)
{
if (!strcmp(var, "core.gitproxy")) {
static int git_proxy_command_options(const char *var, const char *value)
{
if (!strcmp(var, "core.gitproxy")) {
+ const char *for_pos;
+ int matchlen = -1;
+ int hostlen;
+
if (git_proxy_command)
return 0;
/* [core]
if (git_proxy_command)
return 0;
/* [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-default
*/
* gitproxy = netcatter-2 for sample.xz
* gitproxy = netcatter-default
*/
- const char *for_pos = strstr(value, " for ");
- int matchlen = -1;
- int hostlen;
-
+ for_pos = strstr(value, " for ");
if (!for_pos)
/* matches everybody */
matchlen = strlen(value);
if (!for_pos)
/* matches everybody */
matchlen = strlen(value);