Skip to content

Commit a850097

Browse files
committed
Make param_is_static() public... again
It's possible that we want to use a field on `param_t` instead in the future. But we can simply update this function to account for that, when the time comes.
1 parent a4b6e9b commit a850097

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/param/param_list.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ void param_list_store_vmem_load(vmem_t * vmem);
103103
void list_add_output(uint32_t mask, FILE * out);
104104
void list_add_output_user_flags(uint32_t mask, FILE * out);
105105

106+
uint8_t param_is_static(const param_t * param);
107+
106108
#ifdef __cplusplus
107109
}
108110
#endif

src/param/list/param_list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _Static_assert(__alignof__(param_t) == 8, "param_t alignment must be exactly 8 b
3737
static SLIST_HEAD(param_list_head_s, param_s) param_list_head = {0};
3838
#endif
3939

40-
static uint8_t param_is_static(const param_t * param) {
40+
uint8_t param_is_static(const param_t * param) {
4141

4242
__attribute__((weak)) extern const param_t __start_param;
4343
__attribute__((weak)) extern const param_t __stop_param;

0 commit comments

Comments
 (0)