fix after scandir() prototype change
This commit is contained in:
parent
2af92d6a64
commit
47b98de468
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-src_gtkcompletionline_cc,v 1.2 2009/11/10 22:42:17 kili Exp $
|
||||
--- src/gtkcompletionline.cc.orig Sun Nov 16 11:55:07 2003
|
||||
+++ src/gtkcompletionline.cc Tue Nov 10 23:33:28 2009
|
||||
$OpenBSD: patch-src_gtkcompletionline_cc,v 1.3 2012/03/23 20:47:06 naddy Exp $
|
||||
--- src/gtkcompletionline.cc.orig Sun Nov 16 03:55:07 2003
|
||||
+++ src/gtkcompletionline.cc Fri Mar 23 14:45:10 2012
|
||||
@@ -76,9 +76,9 @@ static gboolean
|
||||
on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data);
|
||||
|
||||
@ -22,3 +22,15 @@ $OpenBSD: patch-src_gtkcompletionline_cc,v 1.2 2009/11/10 22:42:17 kili Exp $
|
||||
{
|
||||
int len = strlen(dent->d_name);
|
||||
int lenp = prefix.length();
|
||||
@@ -376,10 +376,7 @@ select_executables_only(const struct dirent* dent)
|
||||
return 0;
|
||||
}
|
||||
|
||||
-int my_alphasort(const void* va, const void* vb) {
|
||||
- const struct dirent** a = (const struct dirent**)va;
|
||||
- const struct dirent** b = (const struct dirent**)vb;
|
||||
-
|
||||
+int my_alphasort(const struct dirent** a, const dirent** b) {
|
||||
const char* s1 = (*a)->d_name;
|
||||
const char* s2 = (*b)->d_name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user