Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164350675
D44256.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
660 B
Referenced Files
None
Subscribers
None
D44256.diff
View Options
diff --git a/lib/libc/stdlib/bsearch.c b/lib/libc/stdlib/bsearch.c
--- a/lib/libc/stdlib/bsearch.c
+++ b/lib/libc/stdlib/bsearch.c
@@ -35,6 +35,7 @@
#ifdef I_AM_BSEARCH_B
#include "block_abi.h"
#define COMPAR(x,y) CALL_BLOCK(compar, x, y)
+typedef DECLARE_BLOCK(int, compar_block, const void *, const void *);
#else
#define COMPAR(x,y) compar(x, y)
#endif
@@ -58,7 +59,7 @@
#ifdef I_AM_BSEARCH_B
void *
bsearch_b(const void *key, const void *base0, size_t nmemb, size_t size,
- DECLARE_BLOCK(int, compar, const void *, const void *))
+ compar_block compar)
#else
void *
bsearch(const void *key, const void *base0, size_t nmemb, size_t size,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 1, 2:17 AM (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35803703
Default Alt Text
D44256.diff (660 B)
Attached To
Mode
D44256: bsearch_b: fix compilation with gcc
Attached
Detach File
Event Timeline
Log In to Comment