[PATCH 19/28] makes finish_pack void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Makes finish_pack void and cleans up function calls.

		David

Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]