git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix warning about non-void return in a void function.
@ 2005-08-01 14:05 A Large Angry SCM
  0 siblings, 0 replies; only message in thread
From: A Large Angry SCM @ 2005-08-01 14:05 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Junio C Hamano

[PATCH] Fix warning about non-void return in a void function.

Signed-off-by: A Large Angry SCM <gitzilla@gmail.com>
---

 receive-pack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

8eda2e60f24221255b77e48f4dd60e2b025839ed
diff --git a/receive-pack.c b/receive-pack.c
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -186,7 +186,7 @@ static void unpack(void)
 	int code = run_command(unpacker, NULL);
 	switch (code) {
 	case 0:
-		return 0;
+		return;
 	case -ERR_RUN_COMMAND_FORK:
 		die("unpack fork failed");
 	case -ERR_RUN_COMMAND_EXEC:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-01 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 14:05 [PATCH] Fix warning about non-void return in a void function A Large Angry SCM

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).