summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stubs.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/tests/stubs.c b/tests/stubs.c
index febdd7b..ce93071 100644
--- a/tests/stubs.c
+++ b/tests/stubs.c
@@ -14,21 +14,7 @@
14void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } 14void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; }
15 15
16/* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser 16/* ot_accesslist.c is built with WANT_ACCESSLIST_BLACK so that the hash parser
17 is reachable. These four belong to accesslist_readfile and the reload 17 is reachable. These two belong to accesslist_readfile and the reload worker,
18 worker, neither of which any test drives. */ 18 neither of which any test drives. */
19time_t g_now_seconds; 19time_t g_now_seconds;
20volatile int g_opentracker_running; 20volatile int g_opentracker_running;
21
22const char *mmap_read(const char *filename, size_t *filesize);
23const char *mmap_read(const char *filename, size_t *filesize) {
24 (void)filename;
25 *filesize = 0;
26 return NULL;
27}
28
29int mmap_unmap(const char *mapped, size_t maplen);
30int mmap_unmap(const char *mapped, size_t maplen) {
31 (void)mapped;
32 (void)maplen;
33 return 0;
34}