From: Andreas Schneider Date: Mon, 8 Jul 2024 09:23:39 +0000 (+0200) Subject: s3:modules: Rename thistime to chunk X-Git-Tag: tdb-1.4.11~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=862ba429f9033eaf5eb72d80f17a0ca6006bcbee;p=thirdparty%2Fsamba.git s3:modules: Rename thistime to chunk Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- 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(