diff options
author | Ethan Jackson <ethan@nicira.com> | 2012-06-18 18:40:31 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2012-06-19 12:55:25 -0700 |
commit | 4512aaa792c35cfb59710b951288f7a7394f3a73 (patch) | |
tree | 3a975f2277ee1dd0db4481b3530449e8eba3cdfe /lib/smap.c | |
parent | b2e18db292cd4962af3248f11e9f17e6eaf9c033 (diff) |
lib: Minor const tweak in smap library.
The source argument of smap_clone() isn't modified, and thus can be
declared const.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/smap.c')
-rw-r--r-- | lib/smap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -196,9 +196,9 @@ 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; + const struct smap_node *node; smap_init(dst); SMAP_FOR_EACH (node, src) { |