aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/compat/memcmp.c
diff options
context:
space:
mode:
authoranonimal <anonimal@i2pmail.org>2017-06-28 21:07:24 +0000
committeranonimal <anonimal@i2pmail.org>2018-03-18 15:52:19 +0000
commit84c5a9ba481d7a33cc0fd0ca43867b61d127d907 (patch)
treef05d3d3f107da02005b4a61f0e5074c113a7165c /external/unbound/compat/memcmp.c
parentMerge pull request #3416 (diff)
downloadmonero-84c5a9ba481d7a33cc0fd0ca43867b61d127d907.tar.xz
Unbound: remove unbound from in-tree source
We'll instead use a git submodule to pull from our unbound repo.
Diffstat (limited to 'external/unbound/compat/memcmp.c')
-rw-r--r--external/unbound/compat/memcmp.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/external/unbound/compat/memcmp.c b/external/unbound/compat/memcmp.c
deleted file mode 100644
index 9446276f4..000000000
--- a/external/unbound/compat/memcmp.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * memcmp.c: memcmp compat implementation.
- *
- * Copyright (c) 2010, NLnet Labs. All rights reserved.
- *
- * See LICENSE for the license.
-*/
-
-#include <config.h>
-
-int memcmp(const void *x, const void *y, size_t n);
-
-int memcmp(const void *x, const void *y, size_t n)
-{
- const uint8_t* x8 = (const uint8_t*)x;
- const uint8_t* y8 = (const uint8_t*)y;
- size_t i;
- for(i=0; i<n; i++) {
- if(x8[i] < y8[i])
- return -1;
- else if(x8[i] > y8[i])
- return 1;
- }
- return 0;
-}