PATCH [12/28] makes generate_tar void

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

 



Makes generate_tar void and removes conditional return.

		David

Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
 builtin-tar-tree.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c
index 215892b..42230f6 100644
--- a/builtin-tar-tree.c
+++ b/builtin-tar-tree.c
@@ -308,7 +308,7 @@ int git_tar_config(const char *var, cons
 	return git_default_config(var, value);
 }
 
-static int generate_tar(int argc, const char **argv, const char *prefix)
+static void generate_tar(int argc, const char **argv, const char *prefix)
 {
 	unsigned char sha1[20], tree_sha1[20];
 	struct commit *commit;
@@ -354,7 +354,6 @@ static int generate_tar(int argc, const 
 	write_trailer();
 	free(buffer);
 	free(current_path.buf);
-	return 0;
 }
 
 static const char *exec = "git-upload-tar";
@@ -409,7 +408,8 @@ int cmd_tar_tree(int argc, const char **
 		usage(tar_tree_usage);
 	if (!strncmp("--remote=", argv[1], 9))
 		return remote_tar(argc, argv);
-	return generate_tar(argc, argv, prefix);
+	generate_tar(argc, argv, prefix);
+	return 0;
 }
 
 /* ustar header + extended global header content */
-- 
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]