From: David Rientjes Date: Mon, 14 Aug 2006 20:35:05 GMT Subject: [PATCH 19/28] makes finish_pack void Message-ID: Makes finish_pack void and cleans up function calls. David Signed-off-by: David Rientjes --- fetch-clone.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fetch-clone.c b/fetch-clone.c index 5e84c46..72750c4 100644 --- a/fetch-clone.c +++ b/fetch-clone.c @@ -4,7 +4,7 @@ #include "pkt-line.h" #include #include -static int finish_pack(const char *pack_tmp_name, const char *me) +static void finish_pack(const char *pack_tmp_name, const char *me) { int pipe_fd[2]; pid_t pid; @@ -87,7 +87,6 @@ static int finish_pack(const char *pack_ "%s/pack/pack-%s.idx", get_object_directory(), hash); move_temp_to_file(idx, final); chmod(final, 0444); - return 0; error_die: unlink(idx); @@ -297,5 +296,6 @@ int receive_keep_pack(int xd[2], const c } } close(ofd); - return finish_pack(tmpfile, me); + finish_pack(tmpfile, me); + return 0; } -- 1.4.2.g89bb-dirty