1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Merge with git+ssh://pasky.or.cz/srv/git/elinks.git

This commit is contained in:
Laurent MONIN 2006-01-17 01:19:17 +01:00 committed by Laurent MONIN
commit dab904cff5

View File

@ -63,10 +63,6 @@ struct module fsp_protocol_module = struct_module(
); );
struct fsp_info {
int init;
};
static void static void
fsp_error(unsigned char *error) fsp_error(unsigned char *error)
{ {
@ -113,16 +109,16 @@ sort_and_display_entries(FSP_DIR *dir)
memcpy(&table[size], &fentry, sizeof(fentry)); memcpy(&table[size], &fentry, sizeof(fentry));
size++; size++;
} }
qsort(table, size, sizeof(fentry), qsort(table, size, sizeof(*table),
(int (*)(const void *, const void *)) compare); (int (*)(const void *, const void *)) compare);
for (i = 0; i < size; i++) { for (i = 0; i < size; i++) {
printf("%10d\t<a href=\"%s\">", table[i].size, table[i].name); printf("%10d\t<a href=\"%s\">", table[i].size, table[i].name);
if (fentry.type == FSP_RDTYPE_DIR && *dircolor) { if (table[i].type == FSP_RDTYPE_DIR && *dircolor) {
printf("<font color=\"%s\"><b>", dircolor); printf("<font color=\"%s\"><b>", dircolor);
} }
printf("%s", table[i].name); printf("%s", table[i].name);
if (fentry.type == FSP_RDTYPE_DIR && *dircolor) { if (table[i].type == FSP_RDTYPE_DIR && *dircolor) {
printf("</b></font>"); printf("</b></font>");
} }
puts("</a>"); puts("</a>");