diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2019-08-13 10:14:32 -0400 |
---|---|---|
committer | Patrice Buriez <patrice.buriez@intel.com> | 2019-10-08 19:21:34 +0000 |
commit | fb0c44a8e62de7cf06a1ad0c025ac7ecb39cad27 (patch) | |
tree | 4eca4ee386a0de23dc1028a37d90ce2c731f1798 /VNFs/DPPD-PROX/clock.c | |
parent | d3552eafaca34771734258f3ff6f4f5f819e72bd (diff) |
Support for recent GCC compiler
This is required for instance on gcc (GCC) 8.2.1 20180905
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Change-Id: Id86de5d39d77c5cbf168cc51434f436f84376a4c
Diffstat (limited to 'VNFs/DPPD-PROX/clock.c')
-rw-r--r-- | VNFs/DPPD-PROX/clock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/clock.c b/VNFs/DPPD-PROX/clock.c index 6e057101..43caccad 100644 --- a/VNFs/DPPD-PROX/clock.c +++ b/VNFs/DPPD-PROX/clock.c @@ -20,6 +20,7 @@ #include <string.h> #include <rte_cycles.h> +#include "prox_compat.h" /* Calibrate TSC overhead by reading NB_READ times and take the smallest value. Bigger values are caused by external influence and can be discarded. The best @@ -92,7 +93,7 @@ uint64_t str_to_tsc(const char *from) uint64_t ret; char str[16]; - strncpy(str, from, sizeof(str)); + prox_strncpy(str, from, sizeof(str)); char *frac = strchr(str, '.'); |