aboutsummaryrefslogtreecommitdiff
path: root/ssh-fetch.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-15 10:23:48 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-15 21:22:20 -0700
commit96f1e58f524fac8607cfc38896b365b6e8365b51 (patch)
treeb30b39c8333a821b18c5a4313eda9d7e8ef2d844 /ssh-fetch.c
parentc9c3470aec3a1d753ac1e5f21358f6374c1add95 (diff)
downloadgit-96f1e58f524fac8607cfc38896b365b6e8365b51.tar.gz
git-96f1e58f524fac8607cfc38896b365b6e8365b51.tar.xz
remove unnecessary initializations
[jc: I needed to hand merge the changes to the updated codebase, so the result needs to be checked.] Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ssh-fetch.c')
-rw-r--r--ssh-fetch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh-fetch.c b/ssh-fetch.c
index c7d8fa80e..0b89df6dd 100644
--- a/ssh-fetch.c
+++ b/ssh-fetch.c
@@ -17,7 +17,7 @@
static int fd_in;
static int fd_out;
-static unsigned char remote_version = 0;
+static unsigned char remote_version;
static unsigned char local_version = 1;
static ssize_t force_write(int fd, void *buffer, size_t length)
@@ -36,9 +36,9 @@ static ssize_t force_write(int fd, void *buffer, size_t length)
return ret;
}
-static int prefetches = 0;
+static int prefetches;
-static struct object_list *in_transit = NULL;
+static struct object_list *in_transit;
static struct object_list **end_of_transit = &in_transit;
void prefetch(unsigned char *sha1)
@@ -59,7 +59,7 @@ void prefetch(unsigned char *sha1)
}
static char conn_buf[4096];
-static size_t conn_buf_posn = 0;
+static size_t conn_buf_posn;
int fetch(unsigned char *sha1)
{