The source argument of smap_clone() isn't modified, and thus can be
declared const.

Signed-off-by: Ethan Jackson <[email protected]>
---
 lib/smap.c |    2 +-
 lib/smap.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/smap.c b/lib/smap.c
index 642804e..dbdc59b 100644
--- a/lib/smap.c
+++ b/lib/smap.c
@@ -196,7 +196,7 @@ smap_count(const struct smap *smap)
 
 /* Initializes 'dst' as a clone of 'src. */
 void
-smap_clone(struct smap *dst, struct smap *src)
+smap_clone(struct smap *dst, const struct smap *src)
 {
     struct smap_node *node;
 
diff --git a/lib/smap.h b/lib/smap.h
index 993d0b2..51f6397 100644
--- a/lib/smap.h
+++ b/lib/smap.h
@@ -57,7 +57,7 @@ int smap_get_int(const struct smap *smap, const char *key, 
int def);
 bool smap_is_empty(const struct smap *);
 size_t smap_count(const struct smap *);
 
-void smap_clone(struct smap *dst, struct smap *src);
+void smap_clone(struct smap *dst, const struct smap *src);
 const struct smap_node **smap_sort(const struct smap *);
 
 #endif /* smap.h */
-- 
1.7.10.2

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to