diff options
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 68c03edf1..703a0f652 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -624,25 +624,6 @@ timeout_resolution (void *cls) | |||
624 | } | 624 | } |
625 | 625 | ||
626 | 626 | ||
627 | #if (defined WINDOWS) || (defined DARWIN) | ||
628 | /* Don't have this on W32, here's a naive implementation | ||
629 | * Was somehow removed on OS X ... */ | ||
630 | static void * | ||
631 | memrchr (const void *s, | ||
632 | int c, | ||
633 | size_t n) | ||
634 | { | ||
635 | const unsigned char *ucs = s; | ||
636 | ssize_t i; | ||
637 | |||
638 | for (i = n - 1; i >= 0; i--) | ||
639 | if (c == (int) ucs[i]) | ||
640 | return (void *) &ucs[i]; | ||
641 | return NULL; | ||
642 | } | ||
643 | #endif | ||
644 | |||
645 | |||
646 | /** | 627 | /** |
647 | * Get the next, rightmost label from the name that we are trying to resolve, | 628 | * Get the next, rightmost label from the name that we are trying to resolve, |
648 | * and update the resolution position accordingly. Labels usually consist | 629 | * and update the resolution position accordingly. Labels usually consist |