diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stubs.c | 20 |
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 @@ | |||
| 14 | void free_peerlist(ot_peerlist *peer_list) { (void)peer_list; } | 14 | void 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. */ |
| 19 | time_t g_now_seconds; | 19 | time_t g_now_seconds; |
| 20 | volatile int g_opentracker_running; | 20 | volatile int g_opentracker_running; |
| 21 | |||
| 22 | const char *mmap_read(const char *filename, size_t *filesize); | ||
| 23 | const char *mmap_read(const char *filename, size_t *filesize) { | ||
| 24 | (void)filename; | ||
| 25 | *filesize = 0; | ||
| 26 | return NULL; | ||
| 27 | } | ||
| 28 | |||
| 29 | int mmap_unmap(const char *mapped, size_t maplen); | ||
| 30 | int mmap_unmap(const char *mapped, size_t maplen) { | ||
| 31 | (void)mapped; | ||
| 32 | (void)maplen; | ||
| 33 | return 0; | ||
| 34 | } | ||
