From b0f5dc5afdf2949e46eb5ffb774e3252e5b9c2e9 Mon Sep 17 00:00:00 2001 From: Terry Burton Date: Fri, 10 Nov 2023 17:40:35 +0000 Subject: [PATCH] gs1_encoder_getDLuri impl: Constness --- src/c-lib/gs1encoders.c | 2 +- src/c-lib/gs1encoders.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c-lib/gs1encoders.c b/src/c-lib/gs1encoders.c index 6c6292c..4b79c5f 100644 --- a/src/c-lib/gs1encoders.c +++ b/src/c-lib/gs1encoders.c @@ -353,7 +353,7 @@ GS1_ENCODERS_API char* gs1_encoder_getAIdataStr(gs1_encoder *ctx) { } -GS1_ENCODERS_API char* gs1_encoder_getDLuri(gs1_encoder *ctx, char *stem) { +GS1_ENCODERS_API char* gs1_encoder_getDLuri(gs1_encoder *ctx, const char *stem) { assert(ctx); return gs1_generateDLuri(ctx, stem); } diff --git a/src/c-lib/gs1encoders.h b/src/c-lib/gs1encoders.h index 3ea6253..49bb628 100644 --- a/src/c-lib/gs1encoders.h +++ b/src/c-lib/gs1encoders.h @@ -876,7 +876,7 @@ GS1_ENCODERS_API char* gs1_encoder_getAIdataStr(gs1_encoder *ctx); * @param [in] stem a URI "stem" used as a prefix for the URI. If NULL, the GS1 canonical stem (`https://id.gs1.org/`) will be used. * @return a pointer to a string representing the GS1 Digital Link URI for the input data */ -GS1_ENCODERS_API char* gs1_encoder_getDLuri(gs1_encoder *ctx, char *stem); +GS1_ENCODERS_API char* gs1_encoder_getDLuri(gs1_encoder *ctx, const char *stem); /**