diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-02 22:23:08 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-03 08:32:43 +0300 |
commit | 7b22ec1c0b08b780c665a3507513d971732220ac (patch) | |
tree | 18b80848ad6406ed6072f4b81a5213938d78a07f /src/microhttpd/tsearch.h | |
parent | 2124a70e5431abf11b97ebb89d1f20f23f0845ea (diff) | |
download | libmicrohttpd-7b22ec1c0b08b780c665a3507513d971732220ac.tar.gz libmicrohttpd-7b22ec1c0b08b780c665a3507513d971732220ac.zip |
tsearch.{h,c}: updated to the latest fixed version
Minor modification added to avoid compiler warnings
Diffstat (limited to 'src/microhttpd/tsearch.h')
-rw-r--r-- | src/microhttpd/tsearch.h | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/microhttpd/tsearch.h b/src/microhttpd/tsearch.h index 0cfe16a7..c6d873b4 100644 --- a/src/microhttpd/tsearch.h +++ b/src/microhttpd/tsearch.h | |||
@@ -3,36 +3,27 @@ | |||
3 | * Public domain. | 3 | * Public domain. |
4 | * | 4 | * |
5 | * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ | 5 | * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ |
6 | * $FreeBSD: release/9.0.0/include/search.h 105250 2002-10-16 14:29:23Z robert $ | ||
7 | */ | 6 | */ |
8 | 7 | ||
9 | #ifndef _TSEARCH_H_ | 8 | #ifndef _TSEARCH_H_ |
10 | #define _TSEARCH_H_ | 9 | #define _TSEARCH_H_ |
11 | 10 | ||
12 | #if defined(__cplusplus) | 11 | #ifdef __cplusplus |
13 | extern "C" { | 12 | extern "C" |
13 | { | ||
14 | #endif /* __cplusplus */ | 14 | #endif /* __cplusplus */ |
15 | 15 | ||
16 | void *tdelete (const void *, void **, | ||
17 | int (*)(const void *, const void *)); | ||
16 | 18 | ||
17 | void * | 19 | void *tfind (const void *, void * const *, |
18 | tdelete (const void *__restrict, | 20 | int (*)(const void *, const void *)); |
19 | void **__restrict, | ||
20 | int (*)(const void *, const void *)); | ||
21 | 21 | ||
22 | void *tsearch (const void *, void **, | ||
23 | int (*)(const void *, const void *)); | ||
22 | 24 | ||
23 | void * | 25 | #ifdef __cplusplus |
24 | tfind (const void *, | 26 | } |
25 | void *const *, | ||
26 | int (*)(const void *, const void *)); | ||
27 | |||
28 | |||
29 | void * | ||
30 | tsearch (const void *, | ||
31 | void **, | ||
32 | int (*)(const void *, const void *)); | ||
33 | |||
34 | #if defined(__cplusplus) | ||
35 | }; | ||
36 | #endif /* __cplusplus */ | 27 | #endif /* __cplusplus */ |
37 | 28 | ||
38 | #endif /* !_TSEARCH_H_ */ | 29 | #endif /* !_TSEARCH_H_ */ |