>From a glance at the prototype it wasn't obvious that it destroyed its
argument.

Signed-off-by: Ben Pfaff <[email protected]>
---
 lib/jsonrpc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
index a8e5bc8434ad..f8786f909ac8 100644
--- a/lib/jsonrpc.c
+++ b/lib/jsonrpc.c
@@ -716,6 +716,9 @@ exit:
     return error;
 }
 
+/* Returns 'm' converted to JSON suitable for sending as a JSON-RPC message.
+ *
+ * Consumes and destroys 'm'. */
 struct json *
 jsonrpc_msg_to_json(struct jsonrpc_msg *m)
 {
-- 
2.10.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to