Skip to content

Commit e6bb481

Browse files
committed
Context: add missing const
Chage `context_process_signal_set_group_leader` `ctx` parameter to `const` since we are just reading it. Signed-off-by: Davide Bettio <davide@uninstall.it>
1 parent 1b3f322 commit e6bb481

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libAtomVM/context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ bool context_process_signal_trap_answer(Context *ctx, struct TermSignal *signal)
294294
return true;
295295
}
296296

297-
bool context_process_signal_set_group_leader(Context *ctx, struct TermSignal *signal)
297+
bool context_process_signal_set_group_leader(Context *ctx, const struct TermSignal *signal)
298298
{
299299
size_t leader_term_size = memory_estimate_usage(signal->signal_term);
300300
ctx->group_leader = UNDEFINED_ATOM;

src/libAtomVM/context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ void context_process_flush_monitor_signal(Context *ctx, uint64_t ref_ticks, bool
421421
* @param signal the message with the group leader term
422422
* @return \c true if successful, \c false in case of memory error
423423
*/
424-
bool context_process_signal_set_group_leader(Context *ctx, struct TermSignal *signal);
424+
bool context_process_signal_set_group_leader(Context *ctx, const struct TermSignal *signal);
425425

426426
/**
427427
* @brief Process a link exit signal.

0 commit comments

Comments
 (0)