diff options
author | Damjan Marion <damarion@cisco.com> | 2021-05-06 17:28:12 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-06 16:29:00 +0000 |
commit | 4a251d0a9c6a6a5981b6bc6500994fa9b8f1c43c (patch) | |
tree | 71c103981c8d1528e7d410cb84380bf0f2f18e72 /src/vppinfra/maplog.c | |
parent | 2c4acdd8d47a14867d9658debc674323efc78323 (diff) |
vppinfra: fix tests
Type: fix
Change-Id: If59a66aae658dd35dbcb4987ab00c306b3c6e2e2
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/maplog.c')
-rw-r--r-- | src/vppinfra/maplog.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vppinfra/maplog.c b/src/vppinfra/maplog.c index 68913365130..4e59631bdbe 100644 --- a/src/vppinfra/maplog.c +++ b/src/vppinfra/maplog.c @@ -24,8 +24,8 @@ * @param[in/out] a init args structure * @return 0 => success, <0 => failure */ -int -clib_maplog_init (clib_maplog_init_args_t * a) +__clib_export int +clib_maplog_init (clib_maplog_init_args_t *a) { int i, fd, limit; int rv = 0; @@ -171,8 +171,8 @@ fail: /* slow path: unmap a full log segment, and replace it */ -u8 * -_clib_maplog_get_entry_slowpath (clib_maplog_main_t * mm, u64 my_record_index) +__clib_export u8 * +_clib_maplog_get_entry_slowpath (clib_maplog_main_t *mm, u64 my_record_index) { int fd; u8 *rv; @@ -295,8 +295,8 @@ out: * * @param[in/out] mm mapped log object */ -void -clib_maplog_close (clib_maplog_main_t * mm) +__clib_export void +clib_maplog_close (clib_maplog_main_t *mm) { int i, limit; u64 file_size_in_bytes; @@ -331,8 +331,8 @@ clib_maplog_close (clib_maplog_main_t * mm) * @param [in] h clib_maplog_header_t pointer * @param [in] verbose self-explanatory */ -u8 * -format_maplog_header (u8 * s, va_list * args) +__clib_export u8 * +format_maplog_header (u8 *s, va_list *args) { clib_maplog_header_t *h = va_arg (*args, clib_maplog_header_t *); int verbose = va_arg (*args, int); @@ -380,7 +380,7 @@ brief: * @param [in] file_basename Same basename supplied to clib_maplog_init * @param [in] fp_arg Callback function pointer */ -int +__clib_export int clib_maplog_process (char *file_basename, void *fp_arg) { clib_maplog_header_t _h, *h = &_h; |