summaryrefslogtreecommitdiff
path: root/ssh-pull.c
diff options
context:
space:
mode:
authorAlecs King <alecsk@gmail.com>2005-08-04 03:35:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-04 04:41:56 (GMT)
commit635d37afff321a9c296ed5d6e0203f2a1c91373f (patch)
tree74400f7c5508ef9cb635d8a9cab95dfe81747003 /ssh-pull.c
parent20f6633112c2a95b4907b4ff2e41e3c450395d34 (diff)
downloadgit-635d37afff321a9c296ed5d6e0203f2a1c91373f.zip
git-635d37afff321a9c296ed5d6e0203f2a1c91373f.tar.gz
git-635d37afff321a9c296ed5d6e0203f2a1c91373f.tar.bz2
[PATCH] Fix sparse warnings
fix one 'should it be static?' warning and two 'mixing declarations and code' warnings. Signed-off-by: Alecs King <alecsk@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ssh-pull.c')
-rw-r--r--ssh-pull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-pull.c b/ssh-pull.c
index bdc99df..b7f313b 100644
--- a/ssh-pull.c
+++ b/ssh-pull.c
@@ -10,7 +10,7 @@ static int fd_out;
static unsigned char remote_version = 0;
static unsigned char local_version = 1;
-ssize_t force_write(int fd, void *buffer, size_t length)
+static ssize_t force_write(int fd, void *buffer, size_t length)
{
ssize_t ret = 0;
while (ret < length) {