The source argument of smap_clone() isn't modified, and thus can be
declared const.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
/* 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) {
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 */