Fossil SCM
Update dirent to Version 1.23.1
Commit
398a90c006ed251ffb3c58464803a17c071a439a8f9e98879a11c73b8425aca9
Parent
ce1bc4fb09fbeed…
1 file changed
+3
-3
+3
-3
| --- win/include/dirent.h | ||
| +++ win/include/dirent.h | ||
| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | /* |
| 2 | 2 | * Dirent interface for Microsoft Visual Studio |
| 3 | - * Version 1.23 | |
| 3 | + * Version 1.23.1 | |
| 4 | 4 | * |
| 5 | 5 | * Copyright (C) 2006-2012 Toni Ronkko |
| 6 | 6 | * This file is part of dirent. Dirent may be freely distributed |
| 7 | 7 | * under the MIT license. For all details and documentation, see |
| 8 | 8 | * https://github.com/tronkko/dirent |
| @@ -912,11 +912,11 @@ | ||
| 912 | 912 | |
| 913 | 913 | /* Allocate first pointer table or enlarge existing table */ |
| 914 | 914 | p = realloc (files, sizeof (void*) * num_entries); |
| 915 | 915 | if (p != NULL) { |
| 916 | 916 | /* Got the memory */ |
| 917 | - files = p; | |
| 917 | + files = (dirent**) p; | |
| 918 | 918 | allocated = num_entries; |
| 919 | 919 | } else { |
| 920 | 920 | /* Out of memory */ |
| 921 | 921 | result = -1; |
| 922 | 922 | break; |
| @@ -963,11 +963,11 @@ | ||
| 963 | 963 | |
| 964 | 964 | /* |
| 965 | 965 | * End of directory stream reached => sort entries and |
| 966 | 966 | * exit. |
| 967 | 967 | */ |
| 968 | - qsort (files, size, sizeof (void*), (void*) compare); | |
| 968 | + qsort (files, size, sizeof (void*), compare); | |
| 969 | 969 | break; |
| 970 | 970 | |
| 971 | 971 | } |
| 972 | 972 | |
| 973 | 973 | } else { |
| 974 | 974 |
| --- win/include/dirent.h | |
| +++ win/include/dirent.h | |
| @@ -1,8 +1,8 @@ | |
| 1 | /* |
| 2 | * Dirent interface for Microsoft Visual Studio |
| 3 | * Version 1.23 |
| 4 | * |
| 5 | * Copyright (C) 2006-2012 Toni Ronkko |
| 6 | * This file is part of dirent. Dirent may be freely distributed |
| 7 | * under the MIT license. For all details and documentation, see |
| 8 | * https://github.com/tronkko/dirent |
| @@ -912,11 +912,11 @@ | |
| 912 | |
| 913 | /* Allocate first pointer table or enlarge existing table */ |
| 914 | p = realloc (files, sizeof (void*) * num_entries); |
| 915 | if (p != NULL) { |
| 916 | /* Got the memory */ |
| 917 | files = p; |
| 918 | allocated = num_entries; |
| 919 | } else { |
| 920 | /* Out of memory */ |
| 921 | result = -1; |
| 922 | break; |
| @@ -963,11 +963,11 @@ | |
| 963 | |
| 964 | /* |
| 965 | * End of directory stream reached => sort entries and |
| 966 | * exit. |
| 967 | */ |
| 968 | qsort (files, size, sizeof (void*), (void*) compare); |
| 969 | break; |
| 970 | |
| 971 | } |
| 972 | |
| 973 | } else { |
| 974 |
| --- win/include/dirent.h | |
| +++ win/include/dirent.h | |
| @@ -1,8 +1,8 @@ | |
| 1 | /* |
| 2 | * Dirent interface for Microsoft Visual Studio |
| 3 | * Version 1.23.1 |
| 4 | * |
| 5 | * Copyright (C) 2006-2012 Toni Ronkko |
| 6 | * This file is part of dirent. Dirent may be freely distributed |
| 7 | * under the MIT license. For all details and documentation, see |
| 8 | * https://github.com/tronkko/dirent |
| @@ -912,11 +912,11 @@ | |
| 912 | |
| 913 | /* Allocate first pointer table or enlarge existing table */ |
| 914 | p = realloc (files, sizeof (void*) * num_entries); |
| 915 | if (p != NULL) { |
| 916 | /* Got the memory */ |
| 917 | files = (dirent**) p; |
| 918 | allocated = num_entries; |
| 919 | } else { |
| 920 | /* Out of memory */ |
| 921 | result = -1; |
| 922 | break; |
| @@ -963,11 +963,11 @@ | |
| 963 | |
| 964 | /* |
| 965 | * End of directory stream reached => sort entries and |
| 966 | * exit. |
| 967 | */ |
| 968 | qsort (files, size, sizeof (void*), compare); |
| 969 | break; |
| 970 | |
| 971 | } |
| 972 | |
| 973 | } else { |
| 974 |