diff options
Diffstat (limited to 'coreutils/diff.c')
| -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 *)); |
