]> git.ipfire.org Git - thirdparty/git.git/commit - upload-pack.c
upload-pack.c: make send_client_data() return void
authorLukas Fleischer <lfleischer@lfos.de>
Tue, 14 Jun 2016 14:49:17 +0000 (16:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Jun 2016 18:40:31 +0000 (11:40 -0700)
commitfcf0fe9e698b7ec3de4e8565030886fc4e4a2757
treece7b534302bd5bb6cae4d24471c53ceaa3d6ed1c
parent4c4b7d1d3b5be12ad83d0ecfc537b40af37462c9
upload-pack.c: make send_client_data() return void

The send_client_data() function uses write_or_die() for writing data
which immediately terminates the process on errors. If no such error
occurred, send_client_data() always returned the value that was passed
as third parameter prior to this commit. This value is already known to
the caller in any case, so let's turn send_client_data() into a void
function instead.

Signed-off-by: Lukas Fleischer <lfleischer@lfos.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c