summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b807770)
raw | patch | inline | side by side (parent: b807770)
author | Shawn Pearce <spearce@spearce.org> | |
Mon, 30 Oct 2006 22:34:50 +0000 (17:34 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 31 Oct 2006 03:12:29 +0000 (19:12 -0800) |
We aren't using this return code variable for anything so lets
just get rid of it to keep this section of code clean.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
just get rid of it to keep this section of code clean.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
receive-pack.c | patch | blob | history |
diff --git a/receive-pack.c b/receive-pack.c
index ea2dbd4e3398ca90823dcd453cbb52c5dcea135c..675b1c18a36ac8f4ec670b9b17519b925dab9996 100644 (file)
--- a/receive-pack.c
+++ b/receive-pack.c
}
}
-static const char *unpack(int *error_code)
+static const char *unpack(void)
{
int code = run_command_v_opt(1, unpacker, RUN_GIT_CMD);
- *error_code = 0;
switch (code) {
case 0:
return NULL;
case -ERR_RUN_COMMAND_WAITPID_NOEXIT:
return "unpacker died strangely";
default:
- *error_code = -code;
return "unpacker exited with error code";
}
}
read_head_info();
if (commands) {
- int code;
- const char *unpack_status = unpack(&code);
+ const char *unpack_status = unpack();
if (!unpack_status)
execute_commands();
if (report_status)