From 511bcac3262b7b656ba557d017b8e884c1f98259 Mon Sep 17 00:00:00 2001 From: Alex Siegel Date: Thu, 16 May 2024 12:53:09 +0000 Subject: [PATCH] asiegel/load-funk-wksp: fixed function parameter names --- src/util/wksp/fd_wksp.h | 6 +++--- src/util/wksp/fd_wksp_io.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/util/wksp/fd_wksp.h b/src/util/wksp/fd_wksp.h index 1d48d8a8cf..16b5694e2e 100644 --- a/src/util/wksp/fd_wksp.h +++ b/src/util/wksp/fd_wksp.h @@ -1018,9 +1018,9 @@ fd_wksp_restore( fd_wksp_t * wksp, file. These can be used with fd_funk_new for a correct restore. */ int fd_wksp_restore_preview( char const * path, - uint * seed, - ulong * part_max, - ulong * data_max ); + uint * out_seed, + ulong * out_part_max, + ulong * out_data_max ); /* fd_wksp_mprotect marks all the memory in a workspace as read-only (flag==1) or read-write (flag==0). Accessing read-only memory produces diff --git a/src/util/wksp/fd_wksp_io.c b/src/util/wksp/fd_wksp_io.c index 489dd21efe..e5dd6292a4 100644 --- a/src/util/wksp/fd_wksp_io.c +++ b/src/util/wksp/fd_wksp_io.c @@ -495,9 +495,9 @@ fd_wksp_restore( fd_wksp_t * wksp, int fd_wksp_restore_preview( char const * path, - uint * seed, - ulong * part_max, - ulong * data_max ) { + uint * out_seed, + ulong * out_part_max, + ulong * out_data_max ) { if( FD_UNLIKELY( !path ) ) { FD_LOG_WARNING(( "NULL path" )); return FD_WKSP_ERR_INVAL; @@ -529,9 +529,9 @@ fd_wksp_restore_preview( char const * path, switch( style ) { case FD_WKSP_CHECKPT_STYLE_RAW: { - ulong tseed_ul; RESTORE_ULONG( tseed_ul ); *seed = (uint)tseed_ul; - ulong tpart_max; RESTORE_ULONG( tpart_max ); *part_max = tpart_max; - ulong tdata_max; RESTORE_ULONG( tdata_max ); *data_max = tdata_max; + ulong tseed_ul; RESTORE_ULONG( tseed_ul ); *out_seed = (uint)tseed_ul; + ulong tpart_max; RESTORE_ULONG( tpart_max ); *out_part_max = tpart_max; + ulong tdata_max; RESTORE_ULONG( tdata_max ); *out_data_max = tdata_max; break; } /* FD_WKSP_CHECKPT_STYLE_RAW */