Skip to content

Commit

Permalink
asiegel/load-funk-wksp: fixed function parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
asiegel-jt committed May 16, 2024
1 parent a371df0 commit 511bcac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/util/wksp/fd_wksp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions src/util/wksp/fd_wksp_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */

Expand Down

0 comments on commit 511bcac

Please sign in to comment.