git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
f847c07
)
sparse fix: non-ANSI function declaration
author
Rene Scharfe
<redacted>
Sat, 18 Nov 2006 12:07:06 +0000
(13:07 +0100)
committer
Junio C Hamano
<redacted>
Sat, 18 Nov 2006 19:40:00 +0000
(11:40 -0800)
The declaration of discard_cache() in cache.h already has its "void".
Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
index-pack.c
patch
|
blob
|
history
read-cache.c
patch
|
blob
|
history
diff --git
a/index-pack.c
b/index-pack.c
index 042aea8842b531254e9a2d0ec67cbaeb40990575..8331d99a62a457cb341a834792aedf5de9c5625f 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-90,7
+90,7
@@
static SHA_CTX input_ctx;
static int input_fd, output_fd, mmap_fd;
/* Discard current buffer used content. */
-static void flush()
+static void flush(
void
)
{
if (input_offset) {
if (output_fd >= 0)
diff --git
a/read-cache.c
b/read-cache.c
index 97c38670b45d852b2f07f3d3addb2aaf6dbd8697..0f5fb5bc3350f7def1eb14e792507098118d1e66 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-844,7
+844,7
@@
unmap:
die("index file corrupt");
}
-int discard_cache()
+int discard_cache(
void
)
{
int ret;
git clone https://git.99rst.org/PROJECT