return r;
}
-static struct tree_entry* new_tree_entry()
+static struct tree_entry* new_tree_entry(void)
{
struct tree_entry *e;
avail_tree_entry = e;
}
-static void start_packfile()
+static void start_packfile(void)
{
static char tmpfile[PATH_MAX];
struct packed_git *p;
all_packs[pack_id] = p;
}
-static void fixup_header_footer()
+static void fixup_header_footer(void)
{
int pack_fd = pack_data->pack_fd;
SHA_CTX c;
return hashcmp(a->sha1, b->sha1);
}
-static char* create_index()
+static char* create_index(void)
{
static char tmpfile[PATH_MAX];
SHA_CTX ctx;
return name;
}
-static void unkeep_all_packs()
+static void unkeep_all_packs(void)
{
static char name[PATH_MAX];
int k;
}
}
-static void end_packfile()
+static void end_packfile(void)
{
struct packed_git *old_p = pack_data, *new_p;
last_blob.depth = 0;
}
-static void checkpoint()
+static void checkpoint(void)
{
end_packfile();
start_packfile();
return 1;
}
-static void dump_branches()
+static void dump_branches(void)
{
static const char *msg = "fast-import";
unsigned int i;
}
}
-static void dump_tags()
+static void dump_tags(void)
{
static const char *msg = "fast-import";
struct tag *t;
}
}
-static void dump_marks()
+static void dump_marks(void)
{
if (mark_file)
{
}
}
-static void read_next_command()
+static void read_next_command(void)
{
read_line(&command_buf, stdin, '\n');
}
-static void cmd_mark()
+static void cmd_mark(void)
{
if (!strncmp("mark :", command_buf.buf, 6)) {
next_mark = strtoumax(command_buf.buf + 6, NULL, 10);
return buffer;
}
-static void cmd_new_blob()
+static void cmd_new_blob(void)
{
size_t l;
void *d;
free(d);
}
-static void unload_one_branch()
+static void unload_one_branch(void)
{
while (cur_active_branches
&& cur_active_branches >= max_active_branches) {
return list;
}
-static void cmd_new_commit()
+static void cmd_new_commit(void)
{
struct branch *b;
void *msg;
}
}
-static void cmd_new_tag()
+static void cmd_new_tag(void)
{
char *str_uq;
const char *endp;
}
}
-static void cmd_reset_branch()
+static void cmd_reset_branch(void)
{
struct branch *b;
char *str_uq;
cmd_from(b);
}
-static void cmd_checkpoint()
+static void cmd_checkpoint(void)
{
if (object_count)
checkpoint();