From 862ba429f9033eaf5eb72d80f17a0ca6006bcbee Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 8 Jul 2024 11:23:39 +0200 Subject: [PATCH] s3:modules: Rename thistime to chunk Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- source3/modules/vfs_preopen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c index d1327f64e58..926f3ce3076 100644 --- a/source3/modules/vfs_preopen.c +++ b/source3/modules/vfs_preopen.c @@ -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( -- 2.47.3