git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 28/28] makes upload_pack void
@ 2006-08-14 20:40 David Rientjes
  2006-08-14 22:45 ` Nikolai Weibull
  0 siblings, 1 reply; 4+ messages in thread
From: David Rientjes @ 2006-08-14 20:40 UTC (permalink / raw)
  To: git

Makes upload_pack void and removes conditional return.

		David

Signed-off-by: David Rientjes <rientjes@google.com>
---
 upload-pack.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/upload-pack.c b/upload-pack.c
index bbd6bd6..27e2abe 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -459,18 +459,17 @@ static int send_ref(const char *refname,
 	return 0;
 }
 
-static int upload_pack(void)
+static void upload_pack(void)
 {
 	reset_timeout();
 	head_ref(send_ref);
 	for_each_ref(send_ref);
 	packet_flush(1);
 	receive_needs();
-	if (!want_obj.nr)
-		return 0;
-	get_common_commits();
-	create_pack_file();
-	return 0;
+	if (want_obj.nr) {
+		get_common_commits();
+		create_pack_file();
+	}
 }
 
 int main(int argc, char **argv)
-- 
1.4.2.g89bb-dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-14 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14 20:40 [PATCH 28/28] makes upload_pack void David Rientjes
2006-08-14 22:45 ` Nikolai Weibull
2006-08-14 22:51   ` David Rientjes
2006-08-14 23:03     ` Nikolai Weibull

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).