summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6f97a89)
Proper function declarations and NULL pointer usage.
diff_setup(reverse_diff);
}
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);
{
if (detect_rename)
diffcore_rename(detect_rename, diff_score_opt);
spec->should_free = spec->should_munmap = 0;
spec->xfrm_flags = 0;
spec->size = 0;
spec->should_free = spec->should_munmap = 0;
spec->xfrm_flags = 0;
spec->size = 0;
spec->mode = 0;
memset(spec->sha1, 0, 20);
return spec;
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;
else if (s->should_munmap)
munmap(s->data, s->size);
s->should_free = s->should_munmap = 0;
}
static void prep_temp_blob(struct diff_tempfile *temp,
}
static void prep_temp_blob(struct diff_tempfile *temp,
*arg++ = other;
*arg++ = xfrm_msg;
}
*arg++ = other;
*arg++ = xfrm_msg;
}
execvp(pgm, (char *const*) exec_arg);
}
else
execvp(pgm, (char *const*) exec_arg);
}
else
struct diff_filepair *dp = xmalloc(sizeof(*dp));
dp->one = one;
dp->two = two;
struct diff_filepair *dp = xmalloc(sizeof(*dp));
dp->one = one;
dp->two = two;
dp->orig_order = queue->nr;
dp->xfrm_work = 0;
diff_q(queue, dp);
dp->orig_order = queue->nr;
dp->xfrm_work = 0;
diff_q(queue, dp);