Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
0152la committed Jun 4, 2024
1 parent 9c93b1e commit b2830ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/compartment.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,9 @@ resolve_rela_syms(struct Compartment *new_comp)

if (curr_rela_map->rela_sym_type == STT_TLS)
{
curr_rela_map->target_func_address = (char*)
curr_rela_map->target_func_address + prev_tls_secs_size;
curr_rela_map->target_func_address
= (char *) curr_rela_map->target_func_address
+ prev_tls_secs_size;
continue;
}

Expand Down
12 changes: 8 additions & 4 deletions tests/simple_thrloc_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ _Thread_local static int val3 = INT_MAX;
_Thread_local static long val4 = LONG_MAX;
_Thread_local long val5;

int get_ext();
int get_ext_stat();
void use_val();
void do_ext_check(int);
int
get_ext();
int
get_ext_stat();
void
use_val();
void
do_ext_check(int);

int
do_val2()
Expand Down

0 comments on commit b2830ff

Please sign in to comment.