diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/diff.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editors/diff.c b/editors/diff.c index 8844ec1c0..1359af838 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -1095,12 +1095,6 @@ static void do_diff(char *dir1, char *path1, char *dir2, char *path2) | |||
1095 | 1095 | ||
1096 | 1096 | ||
1097 | #if ENABLE_FEATURE_DIFF_DIR | 1097 | #if ENABLE_FEATURE_DIFF_DIR |
1098 | static int dir_strcmp(const void *p1, const void *p2) | ||
1099 | { | ||
1100 | return strcmp(*(char *const *) p1, *(char *const *) p2); | ||
1101 | } | ||
1102 | |||
1103 | |||
1104 | /* This function adds a filename to dl, the directory listing. */ | 1098 | /* This function adds a filename to dl, the directory listing. */ |
1105 | static int add_to_dirlist(const char *filename, | 1099 | static int add_to_dirlist(const char *filename, |
1106 | struct stat ATTRIBUTE_UNUSED * sb, void *userdata, | 1100 | struct stat ATTRIBUTE_UNUSED * sb, void *userdata, |
@@ -1144,7 +1138,7 @@ static char **get_dir(char *path) | |||
1144 | } | 1138 | } |
1145 | 1139 | ||
1146 | /* Sort dl alphabetically. */ | 1140 | /* Sort dl alphabetically. */ |
1147 | qsort(dl, dl_count, sizeof(char *), dir_strcmp); | 1141 | qsort_string_vector(dl, dl_count); |
1148 | 1142 | ||
1149 | dl[dl_count] = NULL; | 1143 | dl[dl_count] = NULL; |
1150 | return dl; | 1144 | return dl; |