Skip to content

Commit

Permalink
gs1_encoder_getDLuri impl: Constness
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Nov 10, 2023
1 parent b4ee4d7 commit b0f5dc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/c-lib/gs1encoders.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/c-lib/gs1encoders.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);


/**
Expand Down

0 comments on commit b0f5dc5

Please sign in to comment.