1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s3:modules: Rename thistime to chunk

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2024-07-08 11:23:39 +02:00 committed by Günther Deschner
parent 79d2dbc057
commit 862ba429f9

View 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(