wok-current rev 4262
wvdial: fix build with gcc-4.x
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 25 16:01:48 2009 +0200 (2009-09-25) |
parents | 843c4b1b4ead |
children | 30bb68da9336 |
files | wvdial/stuff/wvdial-1.41-gcc4.2.diff |
line diff
1.1 --- a/wvdial/stuff/wvdial-1.41-gcc4.2.diff Fri Sep 25 12:08:50 2009 +0200 1.2 +++ b/wvdial/stuff/wvdial-1.41-gcc4.2.diff Fri Sep 25 16:01:48 2009 +0200 1.3 @@ -334,3 +334,18 @@ 1.4 1.5 -#endif __WVDEFS_H 1.6 +#endif // __WVDEFS_H 1.7 + 1.8 +--- wvdial-1.41/wvdial/wvmodemscan.cc 1.9 ++++ wvdial-1.41/wvdial/wvmodemscan.cc 1.10 +@@ -331,10 +331,8 @@ 1.11 + } 1.12 + 1.13 + 1.14 +-static int filesort(const void *_e1, const void *_e2) 1.15 ++static int filesort(const dirent **e1, const dirent **e2) 1.16 + { 1.17 +- dirent const * const *e1 = (dirent const * const *)_e1; 1.18 +- dirent const * const *e2 = (dirent const * const *)_e2; 1.19 + const char *p1, *p2; 1.20 + int diff; 1.21 +