Use "STATIC" to export consdiff fns for testing

Previously test_consdiff.c just did #include "consdiff.c", which is
not great style, and messes up coverage testing.
This commit is contained in:
Nick Mathewson
2017-03-07 10:22:00 -05:00
parent 590ffdb2c9
commit 360d043ac7
3 changed files with 53 additions and 32 deletions
+4 -1
View File
@@ -2,10 +2,13 @@
* Copyright (c) 2014, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#define CONSDIFF_PRIVATE
#include "or.h"
#include "test.h"
#include "consdiff.c"
#include "consdiff.h"
#include "routerparse.h"
#ifndef OP_EQ
#define OP_EQ ==