diff options
author | Ben Pfaff <blp@ovn.org> | 2017-12-29 05:44:35 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-02-06 11:15:00 -0800 |
commit | 303566c564778a9048afff397b9cae45f3b85410 (patch) | |
tree | a65f9334a7dc865ecad248bd9b00357294a12c96 /lib | |
parent | c645550bb2498fb3816b6a39b22bffeb3154dca3 (diff) | |
download | openvswitch-303566c564778a9048afff397b9cae45f3b85410.tar.gz |
jsonrpc: Add comment for jsonrpc_msg_to_json().
From a glance at the prototype it wasn't obvious that it destroyed its
argument.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jsonrpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c index 87ca1aa86..aaff74577 100644 --- a/lib/jsonrpc.c +++ b/lib/jsonrpc.c @@ -714,6 +714,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) { |