/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sideband.c: make send_sideband() return void
[git/git.git]
/
sideband.c
diff --git
a/sideband.c
b/sideband.c
index
fde8adc
..
c09929d
100644
(file)
--- a/
sideband.c
+++ b/
sideband.c
@@
-124,9
+124,8
@@
int recv_sideband(const char *me, int in_stream, int out)
* fd is connected to the remote side; send the sideband data
* over multiplexed packet stream.
*/
* fd is connected to the remote side; send the sideband data
* over multiplexed packet stream.
*/
-
ssize_t
send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
+
void
send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max)
{
{
- ssize_t ssz = sz;
const char *p = data;
while (sz) {
const char *p = data;
while (sz) {
@@
-148,5
+147,4
@@
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet
p += n;
sz -= n;
}
p += n;
sz -= n;
}
- return ssz;
}
}