Fossil SCM

Update dirent to Version 1.23.1

jan.nijtmans 2017-09-26 14:47 trunk
Commit 398a90c006ed251ffb3c58464803a17c071a439a8f9e98879a11c73b8425aca9
1 file changed +3 -3
--- win/include/dirent.h
+++ win/include/dirent.h
@@ -1,8 +1,8 @@
11
/*
22
* Dirent interface for Microsoft Visual Studio
3
- * Version 1.23
3
+ * Version 1.23.1
44
*
55
* Copyright (C) 2006-2012 Toni Ronkko
66
* This file is part of dirent. Dirent may be freely distributed
77
* under the MIT license. For all details and documentation, see
88
* https://github.com/tronkko/dirent
@@ -912,11 +912,11 @@
912912
913913
/* Allocate first pointer table or enlarge existing table */
914914
p = realloc (files, sizeof (void*) * num_entries);
915915
if (p != NULL) {
916916
/* Got the memory */
917
- files = p;
917
+ files = (dirent**) p;
918918
allocated = num_entries;
919919
} else {
920920
/* Out of memory */
921921
result = -1;
922922
break;
@@ -963,11 +963,11 @@
963963
964964
/*
965965
* End of directory stream reached => sort entries and
966966
* exit.
967967
*/
968
- qsort (files, size, sizeof (void*), (void*) compare);
968
+ qsort (files, size, sizeof (void*), compare);
969969
break;
970970
971971
}
972972
973973
} else {
974974
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button