diff options
author | Florian Forster <octo@verplant.org> | 2006-06-18 17:18:09 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-20 01:59:46 -0700 |
commit | 1d7f171c3a456b980d821ee0f68e01535a5f7e36 (patch) | |
tree | 040ae96db3e2d18f84a95cc46ec4d7626bcc1994 /ssh-fetch.c | |
parent | 2bda77e080dd8d47ca0b87c78e9061fbaa37455a (diff) | |
download | git-1d7f171c3a456b980d821ee0f68e01535a5f7e36.tar.gz git-1d7f171c3a456b980d821ee0f68e01535a5f7e36.tar.xz |
Remove all void-pointer arithmetic.
ANSI C99 doesn't allow void-pointer arithmetic. This patch fixes this in
various ways. Usually the strategy that required the least changes was used.
Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ssh-fetch.c')
-rw-r--r-- | ssh-fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh-fetch.c b/ssh-fetch.c index e3067b878..1e59cd200 100644 --- a/ssh-fetch.c +++ b/ssh-fetch.c @@ -24,7 +24,7 @@ static ssize_t force_write(int fd, void *buffer, size_t length) { ssize_t ret = 0; while (ret < length) { - ssize_t size = write(fd, buffer + ret, length - ret); + ssize_t size = write(fd, (char *) buffer + ret, length - ret); if (size < 0) { return size; } |