Skip to content

Commit

Permalink
res: ucmd-module: use const for value returned by sid_ucmd_kv_set
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Jul 16, 2024
1 parent ccfeb92 commit 74d6e5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/include/resource/ucmd-module.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ typedef uint64_t sid_ucmd_kv_flags_t;
#define SID_UCMD_KV_UNSET ((void *) -1)
#define SID_UCMD_KEY_DEVICE_NEXT_MOD "SID_NEXT_MOD"

void *sid_ucmd_kv_set(sid_res_t *mod_res,
struct sid_ucmd_ctx *ucmd_ctx,
sid_ucmd_kv_namespace_t ns,
const char *key,
const void *value,
size_t value_size,
sid_ucmd_kv_flags_t flags);
const void *sid_ucmd_kv_set(sid_res_t *mod_res,
struct sid_ucmd_ctx *ucmd_ctx,
sid_ucmd_kv_namespace_t ns,
const char *key,
const void *value,
size_t value_size,
sid_ucmd_kv_flags_t flags);

const void *sid_ucmd_kv_get(sid_res_t *mod_res,
struct sid_ucmd_ctx *ucmd_ctx,
Expand Down
14 changes: 7 additions & 7 deletions src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2560,13 +2560,13 @@ static void *_do_sid_ucmd_set_kv(sid_res_t *res,
return ret;
}

void *sid_ucmd_kv_set(sid_res_t *mod_res,
struct sid_ucmd_ctx *ucmd_ctx,
sid_ucmd_kv_namespace_t ns,
const char *key,
const void *value,
size_t value_size,
sid_ucmd_kv_flags_t flags)
const void *sid_ucmd_kv_set(sid_res_t *mod_res,
struct sid_ucmd_ctx *ucmd_ctx,
sid_ucmd_kv_namespace_t ns,
const char *key,
const void *value,
size_t value_size,
sid_ucmd_kv_flags_t flags)
{
const char *dom;

Expand Down

0 comments on commit 74d6e5f

Please sign in to comment.