diff --git a/src/protocol/smb/smb2.c b/src/protocol/smb/smb2.c index 4a8121c43..e7620d60d 100644 --- a/src/protocol/smb/smb2.c +++ b/src/protocol/smb/smb2.c @@ -232,8 +232,7 @@ sort_and_display_entries(int dir, const unsigned char dircolor[]) table[size] = new_entry; size++; } - qsort(table, size, sizeof(*table), - (int (*)(const void *, const void *)) compare); + qsort(table, size, sizeof(*table), compare); for (i = 0; i < size; i++) { display_entry(table[i], dircolor);