jsonrpc-server: Use prototype style for ovsdb_jsonrpc_disable_monitor2().
authorBen Pfaff <blp@ovn.org>
Mon, 14 Dec 2015 11:09:07 +0000 (03:09 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 15 Dec 2015 08:33:08 +0000 (00:33 -0800)
Without "void", this is a pre-ANSI style function definition that has
subtly different semantics.

Found by sparse.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
ovsdb/jsonrpc-server.c

index 1dcd394..2065702 100644 (file)
@@ -1374,7 +1374,7 @@ ovsdb_jsonrpc_monitor_flush_all(struct ovsdb_jsonrpc_session *s)
 }
 
 void
-ovsdb_jsonrpc_disable_monitor2()
+ovsdb_jsonrpc_disable_monitor2(void)
 {
     /* Once disabled, it is not possible to re-enable it. */
     monitor2_enable__ = false;