Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2017-12-04 05:53:22 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2018-01-17 20:47:16 +0300
commite6321aa6a668376c40bc2792a3bd392e94c29ad6 (patch)
treefe4028a6278a7d3f49ff79f0e5150b49f225685f /newlib/libc/search
parent0403b9c8c40a351ba72f587add10669df225680b (diff)
ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/search')
-rw-r--r--newlib/libc/search/bsearch.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/newlib/libc/search/bsearch.c b/newlib/libc/search/bsearch.c
index 86380a816..79a489680 100644
--- a/newlib/libc/search/bsearch.c
+++ b/newlib/libc/search/bsearch.c
@@ -55,15 +55,15 @@ No supporting OS subroutines are required.
#include <stdlib.h>
-_PTR
+void *
_DEFUN (bsearch, (key, base, nmemb, size, compar),
- const _PTR key,
- const _PTR base,
+ const void *key,
+ const void *base,
size_t nmemb,
size_t size,
- int _EXFNPTR(compar, (const _PTR, const _PTR)))
+ int _EXFNPTR(compar, (const void *, const void *)))
{
- _PTR current;
+ void *current;
size_t lower = 0;
size_t upper = nmemb;
size_t index;
@@ -75,7 +75,7 @@ _DEFUN (bsearch, (key, base, nmemb, size, compar),
while (lower < upper)
{
index = (lower + upper) / 2;
- current = (_PTR) (((char *) base) + (index * size));
+ current = (void *) (((char *) base) + (index * size));
result = compar (key, current);