diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2012-05-03 08:51:00 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-03 10:22:56 -0700 |
commit | 6163cd8a2a8703bdbd30920731aec32c68c39453 (patch) | |
tree | 37205569724932dd227541f078f068fa68ffa1fc /streaming.c | |
parent | 10d4332e007132a38dc61f03c760d355da5cd550 (diff) | |
download | git-6163cd8a2a8703bdbd30920731aec32c68c39453.tar.gz git-6163cd8a2a8703bdbd30920731aec32c68c39453.tar.xz |
streaming: void pointer instead of char pointer
Allow any kind of buffer to be fed to read_istream() without an explicit
cast by making it's buf argument a void pointer. It's about arbitrary
data, not only characters.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'streaming.c')
-rw-r--r-- | streaming.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming.c b/streaming.c index 7e7ee2be6..3a3cd1206 100644 --- a/streaming.c +++ b/streaming.c @@ -99,7 +99,7 @@ int close_istream(struct git_istream *st) return r; } -ssize_t read_istream(struct git_istream *st, char *buf, size_t sz) +ssize_t read_istream(struct git_istream *st, void *buf, size_t sz) { return st->vtbl->read(st, buf, sz); } |