Skip to content

Commit

Permalink
common: cstyle fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Jan 17, 2025
1 parent f291b82 commit a8c9251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/benchmarks/pmem_flush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ pmem_flush_init(struct benchmark *bench, struct benchmark_args *args)
return -1;
}

uint64_t (*func_mode)(struct pmem_bench * pmb, uint64_t index);
uint64_t (*func_mode)(struct pmem_bench *pmb, uint64_t index);

auto *pmb = (struct pmem_bench *)malloc(sizeof(struct pmem_bench));
assert(pmb != nullptr);
Expand Down
3 changes: 2 additions & 1 deletion src/benchmarks/pmembench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,8 @@ pmembench_run(struct pmembench *pb, struct benchmark *bench)
/*
* pmembench_free_benchmarks -- release all benchmarks
*/
static void __attribute__((destructor)) pmembench_free_benchmarks(void)
static void __attribute__((destructor))
pmembench_free_benchmarks(void)
{
while (!PMDK_LIST_EMPTY(&benchmarks.head)) {
struct benchmark *bench = PMDK_LIST_FIRST(&benchmarks.head);
Expand Down

0 comments on commit a8c9251

Please sign in to comment.