Skip to content

Commit 086a52e

Browse files
SDAP: fix discarded-qualifiers warning in split_extra_attr()
Make sep `const char *` since it only holds a strchr() result from a const input string and is used for pointer arithmetic. Implementation-By: Claude Code (Opus 4.6) Reviewed-by: Tomáš Halman <[email protected]>
1 parent ef104b7 commit 086a52e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/providers/ldap/sdap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static errno_t split_extra_attr(TALLOC_CTX *mem_ctx,
9696
{
9797
char *ldap_attr;
9898
char *sysdb_attr;
99-
char *sep;
99+
const char *sep;
100100

101101
sep = strchr(conf_attr, ':');
102102
if (sep == NULL) {

0 commit comments

Comments
 (0)