Skip to content

Commit

Permalink
use declarations from builtin.h for builtin commands
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
matthiask authored and Junio C Hamano committed Aug 3, 2006
1 parent e12c095 commit 25f38f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion builtin-fmt-merge-msg.c
@@ -1,3 +1,4 @@
#include "builtin.h"
#include "cache.h"
#include "commit.h"
#include "diff.h"
Expand Down Expand Up @@ -242,7 +243,7 @@ static void shortlog(const char *name, unsigned char *sha1,
free_list(&subjects);
}

int cmd_fmt_merge_msg(int argc, char **argv, const char *prefix)
int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
{
int limit = 20, i = 0;
char line[1024];
Expand Down
3 changes: 2 additions & 1 deletion builtin-prune-packed.c
@@ -1,3 +1,4 @@
#include "builtin.h"
#include "cache.h"

static const char prune_packed_usage[] =
Expand Down Expand Up @@ -54,7 +55,7 @@ static void prune_packed_objects(void)
}
}

int cmd_prune_packed(int argc, char **argv, const char *prefix)
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
{
int i;

Expand Down

0 comments on commit 25f38f0

Please sign in to comment.