diff mbox series

[ovs-dev,RFC,13/52] log: Make json parameter to ovsdb_log_write() const.

Message ID 20170919220125.32535-14-blp@ovn.org
State RFC
Headers show
Series clustering implementation | expand

Commit Message

Ben Pfaff Sept. 19, 2017, 10 p.m. UTC
Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 ovsdb/log.c | 2 +-
 ovsdb/log.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/ovsdb/log.c b/ovsdb/log.c
index 81de4179bc27..4b0d9640cafd 100644
--- a/ovsdb/log.c
+++ b/ovsdb/log.c
@@ -351,7 +351,7 @@  ovsdb_log_unread(struct ovsdb_log *file)
 }
 
 struct ovsdb_error *
-ovsdb_log_write(struct ovsdb_log *file, struct json *json)
+ovsdb_log_write(struct ovsdb_log *file, const struct json *json)
 {
     uint8_t sha1[SHA1_DIGEST_SIZE];
     struct ovsdb_error *error;
diff --git a/ovsdb/log.h b/ovsdb/log.h
index fbcea1f2b991..fd495e518dd0 100644
--- a/ovsdb/log.h
+++ b/ovsdb/log.h
@@ -41,7 +41,7 @@  struct ovsdb_error *ovsdb_log_read(struct ovsdb_log *, struct json **)
     OVS_WARN_UNUSED_RESULT;
 void ovsdb_log_unread(struct ovsdb_log *);
 
-struct ovsdb_error *ovsdb_log_write(struct ovsdb_log *, struct json *)
+struct ovsdb_error *ovsdb_log_write(struct ovsdb_log *, const struct json *)
     OVS_WARN_UNUSED_RESULT;
 struct ovsdb_error *ovsdb_log_commit(struct ovsdb_log *)
     OVS_WARN_UNUSED_RESULT;