# [PATCH 19/28] makes finish_pack void

1 messages from 2006-08-14 to 2006-08-14. Participants: David Rientjes.
Thread: https://gitlist.dev/t/5268

## David Rientjes, 2006-08-14 20:35

Subject: [PATCH 19/28] makes finish_pack void
Message-ID: <Pine.LNX.4.63.0608141334170.19383@chino.corp.google.com>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0608141334170.19383%40chino.corp.google.com

```
Makes finish_pack void and cleans up function calls.

		David

Signed-off-by: David Rientjes <rientjes@google.com>
---
 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 <sys/wait.h>
 #include <sys/time.h>
 
-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

```
