]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Align integer types
authorVolker Lendecke <vl@samba.org>
Mon, 4 Aug 2025 11:54:10 +0000 (13:54 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 2 Sep 2025 08:08:28 +0000 (08:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/smbd/server.c

index b3b50c72fa4c9f51e1fe5a4c27e7b13b954c1e54..4e51fb6396df983f199bbe2cd64acb1e8bf48997 100644 (file)
@@ -1314,7 +1314,6 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
        const struct smb_transports *ts = &parent->transports;
        uint8_t ti;
        int num_interfaces = iface_count();
-       int i;
        unsigned dns_port = 0;
 
 #ifdef HAVE_ATEXIT
@@ -1362,6 +1361,7 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
                   told to only bind to those interfaces. Create a
                   socket per interface and bind to only these.
                */
+               int i;
 
                /* Now open a listen socket for each of the
                   interfaces. */
@@ -1393,6 +1393,7 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
 #endif
                        "0.0.0.0",
                };
+               size_t i;
 
                for (i = 0; i < ARRAY_SIZE(sock_addrs); i++) {
                        const char *sock_tok = sock_addrs[i];