summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2014-10-24 13:22:24 -0700
committerJarno Rajahalme <jrajahalme@nicira.com>2014-10-24 13:22:24 -0700
commite618b42fce7b8ad63b1fc78313ff89b6e7282c20 (patch)
tree2a5a5a53056bd04efe5b2f1969ae9305f17f3744
parent3a17f00f784b4b47917f336ca19bdc7078faade5 (diff)
downloadopenvswitch-e618b42fce7b8ad63b1fc78313ff89b6e7282c20.tar.gz
lib: Clean up vlog use.
Vlog functions assume a vlog module has been defined for the current translation unit. Including lib/vlog.h from a header file makes the vlog API visible even when no vlog module may not have been defined. This patch removes the two cases in the tree where vlog.h was included from a header file. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--lib/coverage.h1
-rw-r--r--lib/stream.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/coverage.h b/lib/coverage.h
index af0bdfe41..832c433ee 100644
--- a/lib/coverage.h
+++ b/lib/coverage.h
@@ -28,7 +28,6 @@
* a useful debugging tool. */
#include "ovs-thread.h"
-#include "vlog.h"
#include "compiler.h"
/* Makes coverage_run run every 5000 ms (5 seconds).
diff --git a/lib/stream.h b/lib/stream.h
index 3780ff98f..3087f4527 100644
--- a/lib/stream.h
+++ b/lib/stream.h
@@ -22,11 +22,12 @@
#include <stdint.h>
#include <sys/types.h>
#include "openvswitch/types.h"
-#include "vlog.h"
#include "socket-util.h"
+#include "util.h"
struct pstream;
struct stream;
+struct vlog_module;
void stream_usage(const char *name, bool active, bool passive, bool bootstrap);