]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:modules: Rename thistime to chunk
authorAndreas Schneider <asn@samba.org>
Mon, 8 Jul 2024 09:23:39 +0000 (11:23 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 16 Jul 2024 11:41:33 +0000 (11:41 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/modules/vfs_preopen.c

index d1327f64e581f8d1a448a919357bdd7677954519..926f3ce3076108d1120483b872e0b77289a5c204 100644 (file)
@@ -210,15 +210,15 @@ static bool preopen_helper_open_one(int sock_fd, char **pnamebuf,
        nread = 0;
 
        do {
-               ssize_t thistime;
+               ssize_t chunk;
 
-               thistime = read(sock_fd, namebuf + nread,
+               chunk = read(sock_fd, namebuf + nread,
                                talloc_get_size(namebuf) - nread);
-               if (thistime <= 0) {
+               if (chunk <= 0) {
                        return false;
                }
 
-               nread += thistime;
+               nread += chunk;
 
                if (nread == talloc_get_size(namebuf)) {
                        namebuf = talloc_realloc(