From e08d040c4c9ca714f42aa5909e2a0da6bce85178 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 5 Mar 2007 23:07:20 +0200 Subject: [PATCH] smb: Don't cast the qsort comparison function pointer. Inspired by FSP commit c3a6ca3ef021ca28672df0da0c8fc1cd1b617a32. This time, the cast was a no-op though. --- src/protocol/smb/smb2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);