Skip to content

Commit 011006e

Browse files
committed
Merge pull request #1651 from bettio/add-missing-const
Context: add missing const to read-only ctx parameter These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 1b3f322 + e6bb481 commit 011006e

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)