Skip to content

Commit fcce8d2

Browse files
committed
Make struct rtpp_session const.
1 parent 9209c2a commit fcce8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rtpp_proc_ttl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ static int
8080
rtpp_proc_ttl_foreach(void *dp, void *ap)
8181
{
8282
const struct foreach_args *fap;
83-
struct rtpp_session *sp;
83+
const struct rtpp_session *sp;
8484

8585
fap = (const struct foreach_args *)ap;
8686
/*
8787
* This method does not need us to bump ref, since we are in the
8888
* locked context of the rtpp_hash_table, which holds its own ref.
8989
*/
90-
sp = (struct rtpp_session *)dp;
90+
sp = (const struct rtpp_session *)dp;
9191

9292
if (CALL_SMETHOD(sp->rtp, get_ttl) == 0) {
9393
RTPP_LOG(sp->log, RTPP_LOG_INFO, "session timeout");

0 commit comments

Comments
 (0)