summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorTimo Hirvonen <tihirvon@gmail.com>2006-02-26 17:13:46 +0200
committerJunio C Hamano <junkio@cox.net>2006-02-26 15:06:45 -0800
commit962554c616e30991553c8497ed1e7c2a415fa84d (patch)
tree710390ca470a4a203635d3ce6f48bc426a99bfb3 /fetch-pack.c
parent3c0b7511cdadd04690208d9772fdbd6a86496229 (diff)
downloadgit-962554c616e30991553c8497ed1e7c2a415fa84d.tar.gz
Use setenv(), fix warnings
- Fix -Wundef -Wold-style-definition warnings - Make pll_free() static [jc: original patch by Timo had another unrelated bits: - Use setenv() instead of putenv() I'm postponing that part for now.] Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-pack.c')
-rw-r--r--fetch-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetch-pack.c b/fetch-pack.c
index 09738fee91..535de10660 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -82,7 +82,7 @@ static void mark_common(struct commit *commit,
Get the next rev to send, ignoring the common.
*/
-static const unsigned char* get_rev()
+static const unsigned char* get_rev(void)
{
struct commit *commit = NULL;