Skip to content

Commit 45b5a46

Browse files
committed
SDAP: fix discarded-qualifiers warning in sdap_parse_range()
Make endptr `const char *` since it only holds a strchr() result from a const input string and is used for pointer arithmetic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e0fa18d commit 45b5a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ldap/sdap_range.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ errno_t sdap_parse_range(TALLOC_CTX *mem_ctx,
3434
{
3535
errno_t ret;
3636
TALLOC_CTX *tmp_ctx;
37-
char *endptr;
37+
const char *endptr;
3838
char *end_range;
3939
char *base;
4040
size_t rangestringlen = sizeof(SDAP_RANGE_STRING) - 1;

0 commit comments

Comments
 (0)