packages/x11-misc/gmrun/files/scandir-compar-prototype.patch (619B) - raw
1 Source: Dan Callaghan <djc@djc.id.au> 2 Upstream: TODO 3 Reason: gcc4 is strict about function pointer argument types 4 5 --- gmrun-0.9.2-orig/src/gtkcompletionline.cc 2003-11-16 20:55:07.000000000 +1000 6 +++ gmrun-0.9.2/src/gtkcompletionline.cc 2010-10-09 15:36:31.735708701 +1000 7 @@ -376,10 +377,7 @@ 8 return 0; 9 } 10 11 -int my_alphasort(const void* va, const void* vb) { 12 - const struct dirent** a = (const struct dirent**)va; 13 - const struct dirent** b = (const struct dirent**)vb; 14 - 15 +int my_alphasort(const struct dirent** a, const struct dirent** b) { 16 const char* s1 = (*a)->d_name; 17 const char* s2 = (*b)->d_name; 18