diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-13 16:50:15 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-12-13 16:50:15 +0000 |
commit | 5b6f776fe9f71b2266c3d3923a93ffb2d1009fdb (patch) | |
tree | 7ee65c17b1ec01063cd48721999d4665e90d2497 | |
parent | 35a4bbe74f87900dc6014a1871e207709fe40de8 (diff) | |
download | busybox-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.c | 7 |
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. */ | ||
70 | int context, status; | 72 | int context, status; |
71 | char *start, *label[2]; | 73 | char *start, *label[2]; |
72 | struct stat stb1, stb2; | 74 | struct stat stb1, stb2; |
73 | char **dl; | 75 | char **dl; |
74 | int dl_count = 0; | 76 | static int dl_count = 0; |
75 | 77 | ||
76 | struct cand { | 78 | struct 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 | ||
1032 | static int add_to_dirlist(const char *filename, | 1034 | static 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 *)); |