aboutsummaryrefslogtreecommitdiff
path: root/coreutils/diff.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-13 16:50:15 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-13 16:50:15 +0000
commit9fccfe4d1cbadefa94ca4ec50cb2aba2a88d335b (patch)
tree7ee65c17b1ec01063cd48721999d4665e90d2497 /coreutils/diff.c
parent7cfff28f0122d5506d95f1fb21cd9274c2bcb032 (diff)
downloadbusybox-w32-9fccfe4d1cbadefa94ca4ec50cb2aba2a88d335b.tar.gz
busybox-w32-9fccfe4d1cbadefa94ca4ec50cb2aba2a88d335b.tar.bz2
busybox-w32-9fccfe4d1cbadefa94ca4ec50cb2aba2a88d335b.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. git-svn-id: svn://busybox.net/trunk/busybox@16898 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/diff.c')
-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 *));