summaryrefslogtreecommitdiff
path: root/lib/stream.c
diff options
context:
space:
mode:
authorMike RE Mallin <mremallin@gmail.com>2024-05-21 10:09:02 -0400
committerMike RE Mallin <mremallin@gmail.com>2024-05-31 10:27:22 -0400
commitb69ec60dc6e1f7942a5818b9d7154c1caa0f4441 (patch)
treeb36a8b42c725e4a5a276b7c04c2913d7486960ec /lib/stream.c
parentb30523d3c9cdec301653d0c5d3dc689eda5f3fba (diff)
lib: Make the ip arg const in stream_put_ipaddr
Signed-off-by: Mike RE Mallin <mremallin@gmail.com>
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream.c b/lib/stream.c
index fa20ebdbe7..bb90f3b944 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -921,7 +921,7 @@ int stream_put_in_addr(struct stream *s, const struct in_addr *addr)
return sizeof(uint32_t);
}
-bool stream_put_ipaddr(struct stream *s, struct ipaddr *ip)
+bool stream_put_ipaddr(struct stream *s, const struct ipaddr *ip)
{
stream_putw(s, ip->ipa_type);