aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 16:50:15 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-13 16:50:15 +0000
commit5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb (patch)
tree7ee65c17b1ec01063cd48721999d4665e90d2497
parent35a4bbe74f87900dc6014a1871e207709fe40de8 (diff)
downloadbusybox-w32-5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb.tar.gz
busybox-w32-5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb.tar.bz2
busybox-w32-5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb.zip
- remove warning about unused depth parameter in add_to_dirlist()
- make one variable static and add comment about why the other variables there are not static.
-rw-r--r--coreutils/diff.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 0b83c9ddf..7a9f8c7dd 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -67,11 +67,13 @@ static unsigned long cmd_flags;
67#define FLAG_U (1<<12) 67#define FLAG_U (1<<12)
68#define FLAG_w (1<<13) 68#define FLAG_w (1<<13)
69 69
70/* XXX: FIXME: the following variables should be static, but gcc currently
71 * creates a much bigger object if we do this. */
70int context, status; 72int context, status;
71char *start, *label[2]; 73char *start, *label[2];
72struct stat stb1, stb2; 74struct stat stb1, stb2;
73char **dl; 75char **dl;
74int dl_count = 0; 76static int dl_count = 0;
75 77
76struct cand { 78struct cand {
77 int x; 79 int x;
@@ -1030,7 +1032,8 @@ static int dir_strcmp(const void *p1, const void *p2)
1030/* This function adds a filename to dl, the directory listing. */ 1032/* This function adds a filename to dl, the directory listing. */
1031 1033
1032static int add_to_dirlist(const char *filename, 1034static int add_to_dirlist(const char *filename,
1033 struct stat ATTRIBUTE_UNUSED * sb, void *userdata, int depth) 1035 struct stat ATTRIBUTE_UNUSED * sb, void *userdata,
1036 int depth ATTRIBUTE_UNUSED)
1034{ 1037{
1035 dl_count++; 1038 dl_count++;
1036 dl = xrealloc(dl, dl_count * sizeof(char *)); 1039 dl = xrealloc(dl, dl_count * sizeof(char *));