Skip to content

Commit e0fa18d

Browse files
committed
SDAP: fix discarded-qualifiers warning in are_sids_from_same_dom()
Make rid1 and rid2 `const char *` since they only hold strrchr() results from const input strings and are used for pointer arithmetic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 54ab295 commit e0fa18d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ldap/sdap_async_groups.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ are_sids_from_same_dom(const char *sid1, const char *sid2, bool *_result)
742742
{
743743
size_t len_prefix_sid1;
744744
size_t len_prefix_sid2;
745-
char *rid1, *rid2;
745+
const char *rid1, *rid2;
746746
bool result;
747747

748748
rid1 = strrchr(sid1, '-');

0 commit comments

Comments
 (0)