Skip to content

Commit

Permalink
res: mod: fix alias list stored with SID_MOD_ALIASES to include zero …
Browse files Browse the repository at this point in the history
…suffix at the end
  • Loading branch information
prajnoha committed Apr 11, 2024
1 parent 3b9f179 commit 194fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/resource/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef int sid_mod_cb_fn_t(sid_res_t *mod_res, void *cb_arg);
#define SID_MOD_FN(name, fn) sid_mod_cb_fn_t *sid_mod_##name = fn;

#define SID_MOD_PRIO(val) sid_mod_prio_t sid_mod_prio = val;
#define SID_MOD_ALIASES(val) const char *sid_mod_aliases = val;
#define SID_MOD_ALIASES(val) const char *sid_mod_aliases = val "\0";
#define SID_MOD_INIT(fn) SID_MOD_FN(init, fn)
#define SID_MOD_EXIT(fn) SID_MOD_FN(exit, fn)
#define SID_MOD_RESET(fn) SID_MOD_FN(reset, fn)
Expand Down

0 comments on commit 194fe14

Please sign in to comment.