c11 safe string handling support
Change-Id: Ied34720ca5a6e6e717eea4e86003e854031b6eab
Signed-off-by: Dave Barach <dave@barachs.net>
diff --git a/src/vnet/flow/flow.c b/src/vnet/flow/flow.c
index c4f57a2..485a845 100644
--- a/src/vnet/flow/flow.c
+++ b/src/vnet/flow/flow.c
@@ -82,7 +82,7 @@
/* *INDENT-ON* */
hash_free (f->private_data);
- memset (f, 0, sizeof (*f));
+ clib_memset (f, 0, sizeof (*f));
pool_put (fm->global_flow_pool, f);
return 0;
}
diff --git a/src/vnet/flow/flow_cli.c b/src/vnet/flow/flow_cli.c
index 27f2d38..0e10c90 100644
--- a/src/vnet/flow/flow_cli.c
+++ b/src/vnet/flow/flow_cli.c
@@ -278,7 +278,7 @@
int rv;
u8 prot;
- memset (&flow, 0, sizeof (vnet_flow_t));
+ clib_memset (&flow, 0, sizeof (vnet_flow_t));
flow.index = ~0;
flow.actions = 0;
flow.ip4_n_tuple.protocol = ~0;