Skip to content

Commit

Permalink
fixup! 1 compartment to N mappings
Browse files Browse the repository at this point in the history
CHERI clang-format pass
  • Loading branch information
0152la committed Dec 16, 2024
1 parent 158d7f5 commit 3e1064c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ extern char **environ;
******************************************************************************/

static void *get_next_comp_addr(size_t);
static void *__capability
make_new_ddc(struct Compartment *, void *);
static void *__capability make_new_ddc(struct Compartment *, void *);

static struct CompConfig *
parse_compartment_config_file(char *, bool);
Expand Down Expand Up @@ -125,8 +124,8 @@ get_next_comp_addr(size_t comp_sz)
return next_addr;
}

static void *__capability
make_new_ddc(struct Compartment *comp, void *target_addr)
static void *__capability make_new_ddc(
struct Compartment *comp, void *target_addr)
{
void *__capability new_ddc
= cheri_address_set(cheri_ddc_get(), (intptr_t) target_addr);
Expand Down

0 comments on commit 3e1064c

Please sign in to comment.