@matheusbsbs / matheus-bagliano / commits / 962554c616
Fork 0

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>

Timo Hirvonen committed Feb 26, 2006 at 17:13 UTC 962554c616e30991553c8497ed1e7c2a415fa84d
6 files changed +7 -7
cache.h
+1 -1
@@ -10,7 +10,7 @@
10 #define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
11 #endif
12
13 -#if defined(DT_UNKNOWN) && !NO_D_TYPE_IN_DIRENT
13 +#if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT)
14 #define DTYPE(de) ((de)->d_type)
15 #else
16 #undef DT_UNKNOWN
exec_cmd.c
+1 -1
@@ -13,7 +13,7 @@ void git_set_exec_path(const char *exec_path)
13
14
15 /* Returns the highest-priority, location to look for git programs. */
16 -const char *git_exec_path()
16 +const char *git_exec_path(void)
17 {
18 const char *env;
19
fetch-pack.c
+1 -1
@@ -82,7 +82,7 @@ static void mark_common(struct commit *commit,
82 Get the next rev to send, ignoring the common.
83 */
84
85 -static const unsigned char* get_rev()
85 +static const unsigned char* get_rev(void)
86 {
87 struct commit *commit = NULL;
88
fsck-objects.c
+1 -1
@@ -20,7 +20,7 @@ static int check_strict = 0;
20 static int keep_cache_objects = 0;
21 static unsigned char head_sha1[20];
22
23 -#if NO_D_INO_IN_DIRENT
23 +#ifdef NO_D_INO_IN_DIRENT
24 #define SORT_DIRENT 0
25 #define DIRENT_SORT_HINT(de) 0
26 #else
pack-objects.c
+1 -1
@@ -768,7 +768,7 @@ static int sha1_sort(const struct object_entry *a, const struct object_entry *b)
768 return memcmp(a->sha1, b->sha1, 20);
769 }
770
771 -static struct object_entry **create_final_object_list()
771 +static struct object_entry **create_final_object_list(void)
772 {
773 struct object_entry **list;
774 int i, j;
pack-redundant.c
+2 -2
@@ -45,7 +45,7 @@ static inline void llist_item_put(struct llist_item *item)
45 free_nodes = item;
46 }
47
48 -static inline struct llist_item *llist_item_get()
48 +static inline struct llist_item *llist_item_get(void)
49 {
50 struct llist_item *new;
51 if ( free_nodes ) {
@@ -275,7 +275,7 @@ static void cmp_two_packs(struct pack_list *p1, struct pack_list *p2)
275 }
276 }
277
278 -void pll_free(struct pll *l)
278 +static void pll_free(struct pll *l)
279 {
280 struct pll *old;
281 struct pack_list *opl;