Makes peek_remote void and cleans up function calls. David Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx> --- peek-remote.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/peek-remote.c b/peek-remote.c index 2b30980..b093461 100644 --- a/peek-remote.c +++ b/peek-remote.c @@ -7,7 +7,7 @@ static const char peek_remote_usage[] = "git-peek-remote [--exec=upload-pack] [host:]directory"; static const char *exec = "git-upload-pack"; -static int peek_remote(int fd[2], unsigned flags) +static void peek_remote(int fd[2], unsigned flags) { struct ref *ref; @@ -18,12 +18,11 @@ static int peek_remote(int fd[2], unsign printf("%s %s\n", sha1_to_hex(ref->old_sha1), ref->name); ref = ref->next; } - return 0; } int main(int argc, char **argv) { - int i, ret; + int i; char *dest = NULL; int fd[2]; pid_t pid; @@ -64,9 +63,9 @@ int main(int argc, char **argv) pid = git_connect(fd, dest, exec); if (pid < 0) return 1; - ret = peek_remote(fd, flags); + peek_remote(fd, flags); close(fd[0]); close(fd[1]); finish_connect(pid); - return ret; + 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