swrap: add const to swrap_add_socket_info()
authorStefan Metzmacher <metze@samba.org>
Tue, 30 Jun 2020 15:51:29 +0000 (17:51 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 2 Feb 2021 09:23:33 +0000 (10:23 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c

index fa18a09a765ac71260554b5e3cb04eb7942b87e0..1a76c19a06c17fe1efccf632cb0c7439e4593657 100644 (file)
@@ -1811,7 +1811,7 @@ static int find_socket_info_index(int fd)
        return socket_fds_idx[fd];
 }
 
-static int swrap_add_socket_info(struct socket_info *si_input)
+static int swrap_add_socket_info(const struct socket_info *si_input)
 {
        struct socket_info *si = NULL;
        int si_index = -1;