Skip to content

Commit

Permalink
cleanup: Pass context as const-ptr to cmp_strerror.
Browse files Browse the repository at this point in the history
No mutation happens there.
  • Loading branch information
iphydf committed Nov 4, 2024
1 parent 1e1c7d6 commit 0905d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ uint32_t cmp_mp_version(void) {
return cmp_mp_version_;
}

const char* cmp_strerror(cmp_ctx_t *ctx) {
const char* cmp_strerror(const cmp_ctx_t *ctx) {
if (ctx->error > CMP_ERROR_NONE && ctx->error < CMP_ERROR_MAX)
return cmp_error_message((cmp_error_t)ctx->error);
return "";
Expand Down

0 comments on commit 0905d58

Please sign in to comment.