From 4c4b7d1d3b5be12ad83d0ecfc537b40af37462c9 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 14 Jun 2016 16:49:16 +0200 Subject: sideband.c: make send_sideband() return void The send_sideband() function uses write_or_die() for writing data which immediately terminates the process on errors. If no such error occurred, send_sideband() always returned the value that was passed as fourth parameter prior to this commit. This value is already known to the caller in any case, so let's turn send_sideband() into a void function instead. Signed-off-by: Lukas Fleischer Signed-off-by: Junio C Hamano --- sideband.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sideband.h') diff --git a/sideband.h b/sideband.h index e46bed0b0..7a8146f16 100644 --- a/sideband.h +++ b/sideband.h @@ -5,6 +5,6 @@ #define SIDEBAND_REMOTE_ERROR -1 int recv_sideband(const char *me, int in_stream, int out); -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); #endif -- cgit v1.2.1