Skip to content

Commit 9c7dc9e

Browse files
committed
rtp: fix a warning
In c23, strchr is a type-generic function so it returns a pointer to const char if the 1st argument is such and not to unqualified char as in earlier standards.
1 parent f8b2f9f commit 9c7dc9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rtp/rtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3761,7 +3761,7 @@ bool rtp_set_encryption_key(struct rtp *session, const char *passphrase)
37613761
char *canonical_passphrase;
37623762
u_char hash[16];
37633763
MD5CTX context;
3764-
char *slash;
3764+
const char *slash;
37653765

37663766
check_database(session);
37673767
if (session->encryption_algorithm != NULL) {

0 commit comments

Comments
 (0)