summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f97a89)
raw | patch | inline | side by side (parent: 6f97a89)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 22 May 2005 21:33:43 +0000 (14:33 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 22 May 2005 21:33:43 +0000 (14:33 -0700) |
Proper function declarations and NULL pointer usage.
diff-tree.c | patch | blob | history | |
diff.c | patch | blob | history |
diff --git a/diff-tree.c b/diff-tree.c
index 0b629d20b36f283b70751963bb4fcf5571f28641..0fd28f12883e7e99d73d3b35f536e8168a366c06 100644 (file)
--- a/diff-tree.c
+++ b/diff-tree.c
diff_setup(reverse_diff);
}
-static int call_diff_flush()
+static int call_diff_flush(void)
{
if (detect_rename)
diffcore_rename(detect_rename, diff_score_opt);
index 4757547ea00f57a6523f0300be24b1c8bcde316e..4b2d1054bae0a6f4b87f6da4a862216d241ff42c 100644 (file)
--- a/diff.c
+++ b/diff.c
spec->should_free = spec->should_munmap = 0;
spec->xfrm_flags = 0;
spec->size = 0;
- spec->data = 0;
+ spec->data = NULL;
spec->mode = 0;
memset(spec->sha1, 0, 20);
return spec;
else if (s->should_munmap)
munmap(s->data, s->size);
s->should_free = s->should_munmap = 0;
- s->data = 0;
+ s->data = NULL;
}
static void prep_temp_blob(struct diff_tempfile *temp,
*arg++ = other;
*arg++ = xfrm_msg;
}
- *arg = 0;
+ *arg = NULL;
execvp(pgm, (char *const*) exec_arg);
}
else
struct diff_filepair *dp = xmalloc(sizeof(*dp));
dp->one = one;
dp->two = two;
- dp->xfrm_msg = 0;
+ dp->xfrm_msg = NULL;
dp->orig_order = queue->nr;
dp->xfrm_work = 0;
diff_q(queue, dp);