aboutsummaryrefslogtreecommitdiff
path: root/src/core/mainloop/connection.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2021-07-20 18:30:23 +0000
committerDavid Goulet <dgoulet@torproject.org>2021-07-30 12:57:31 -0400
commit5c3021be8536e2b41d1ecff88e201333a51216b7 (patch)
tree79aafc8d5a529ecca06afcb692fb74ff0bbb6e88 /src/core/mainloop/connection.c
parenta0368b375958bff39a706fbbd9862765013b4207 (diff)
downloadtor-5c3021be8536e2b41d1ecff88e201333a51216b7.tar.gz
tor-5c3021be8536e2b41d1ecff88e201333a51216b7.zip
Make inbuf and outbuf len check params const
Diffstat (limited to 'src/core/mainloop/connection.c')
-rw-r--r--src/core/mainloop/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index 92755914ec..79e034fb34 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -250,13 +250,13 @@ CONST_TO_LISTENER_CONN(const connection_t *c)
}
size_t
-connection_get_inbuf_len(connection_t *conn)
+connection_get_inbuf_len(const connection_t *conn)
{
return conn->inbuf ? buf_datalen(conn->inbuf) : 0;
}
size_t
-connection_get_outbuf_len(connection_t *conn)
+connection_get_outbuf_len(const connection_t *conn)
{
return conn->outbuf ? buf_datalen(conn->outbuf) : 0;
}