diff options
author | Timo Hirvonen <tihirvon@gmail.com> | 2006-02-26 17:13:46 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-26 15:06:45 -0800 |
commit | 962554c616e30991553c8497ed1e7c2a415fa84d (patch) | |
tree | 710390ca470a4a203635d3ce6f48bc426a99bfb3 /pack-redundant.c | |
parent | 3c0b7511cdadd04690208d9772fdbd6a86496229 (diff) | |
download | git-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 'pack-redundant.c')
-rw-r--r-- | pack-redundant.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pack-redundant.c b/pack-redundant.c index 1869b38b72..cd81f5a66e 100644 --- a/pack-redundant.c +++ b/pack-redundant.c @@ -45,7 +45,7 @@ static inline void llist_item_put(struct llist_item *item) free_nodes = item; } -static inline struct llist_item *llist_item_get() +static inline struct llist_item *llist_item_get(void) { struct llist_item *new; if ( free_nodes ) { @@ -275,7 +275,7 @@ static void cmp_two_packs(struct pack_list *p1, struct pack_list *p2) } } -void pll_free(struct pll *l) +static void pll_free(struct pll *l) { struct pll *old; struct pack_list *opl; |