summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f64f6d)
raw | patch | inline | side by side (parent: 6f64f6d)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 17 Jan 2007 06:47:25 +0000 (01:47 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 17 Jan 2007 06:47:25 +0000 (01:47 -0500) |
Apparently the git convention is to declare any function which
takes no arguments as taking void. I did not do this during the
early fast-import development, but should have.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
takes no arguments as taking void. I did not do this during the
early fast-import development, but should have.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c | patch | blob | history |
diff --git a/fast-import.c b/fast-import.c
index 2c500d6be32e8b83e8c7bd0c3768f3b9e6a08907..84f855fb8e9e13a3d585ee830dfd6b3056fc6473 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
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();