summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c0b751)
raw | patch | inline | side by side (parent: 3c0b751)
author | Timo Hirvonen <tihirvon@gmail.com> | |
Sun, 26 Feb 2006 15:13:46 +0000 (17:13 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Feb 2006 23:06:45 +0000 (15:06 -0800) |
- 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>
- 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>
cache.h | patch | blob | history | |
exec_cmd.c | patch | blob | history | |
fetch-pack.c | patch | blob | history | |
fsck-objects.c | patch | blob | history | |
pack-objects.c | patch | blob | history | |
pack-redundant.c | patch | blob | history |
index 5020f0714a89cd8420be47a06937390d00ea5450..58eec00e0ed1d2c20c51d3973d7463ccef0afb26 100644 (file)
--- a/cache.h
+++ b/cache.h
#define deflateBound(c,s) ((s) + (((s) + 7) >> 3) + (((s) + 63) >> 6) + 11)
#endif
-#if defined(DT_UNKNOWN) && !NO_D_TYPE_IN_DIRENT
+#if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT)
#define DTYPE(de) ((de)->d_type)
#else
#undef DT_UNKNOWN
diff --git a/exec_cmd.c b/exec_cmd.c
index 55af33bb7eeb4224ea583fce3008a3fb878d0fe6..b5e59a9ae9777183d3110defc2c8964aa0d8b62b 100644 (file)
--- a/exec_cmd.c
+++ b/exec_cmd.c
/* Returns the highest-priority, location to look for git programs. */
-const char *git_exec_path()
+const char *git_exec_path(void)
{
const char *env;
diff --git a/fetch-pack.c b/fetch-pack.c
index 09738fee91d536aa095d256fe24c07741041b7c4..535de10660bbc381d4f826be597fc7f404d317ca 100644 (file)
--- a/fetch-pack.c
+++ b/fetch-pack.c
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;
diff --git a/fsck-objects.c b/fsck-objects.c
index 6439d55126a615c04db1be16ebcaf8b0af9f7ae3..4ddd67699cfefccee34caa38f2334789ef43dbfc 100644 (file)
--- a/fsck-objects.c
+++ b/fsck-objects.c
static int keep_cache_objects = 0;
static unsigned char head_sha1[20];
-#if NO_D_INO_IN_DIRENT
+#ifdef NO_D_INO_IN_DIRENT
#define SORT_DIRENT 0
#define DIRENT_SORT_HINT(de) 0
#else
diff --git a/pack-objects.c b/pack-objects.c
index 0287449b4ce365eaa134815d34522fdf8495dbe7..21ee572f48287b36628a027ab265ab58b85c90af 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -768,7 +768,7 @@ static int sha1_sort(const struct object_entry *a, const struct object_entry *b)
return memcmp(a->sha1, b->sha1, 20);
}
-static struct object_entry **create_final_object_list()
+static struct object_entry **create_final_object_list(void)
{
struct object_entry **list;
int i, j;
diff --git a/pack-redundant.c b/pack-redundant.c
index 1869b38b726b3760f279076af43006be9f1c5acf..cd81f5a66eae2a4c1fdab4086b896d6a06dcf687 100644 (file)
--- a/pack-redundant.c
+++ b/pack-redundant.c
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 ) {
}
}
-void pll_free(struct pll *l)
+static void pll_free(struct pll *l)
{
struct pll *old;
struct pack_list *opl;