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:
parent
79d2dbc057
commit
862ba429f9
@ -210,15 +210,15 @@ static bool preopen_helper_open_one(int sock_fd, char **pnamebuf,
|
|||||||
nread = 0;
|
nread = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
ssize_t thistime;
|
ssize_t chunk;
|
||||||
|
|
||||||
thistime = read(sock_fd, namebuf + nread,
|
chunk = read(sock_fd, namebuf + nread,
|
||||||
talloc_get_size(namebuf) - nread);
|
talloc_get_size(namebuf) - nread);
|
||||||
if (thistime <= 0) {
|
if (chunk <= 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
nread += thistime;
|
nread += chunk;
|
||||||
|
|
||||||
if (nread == talloc_get_size(namebuf)) {
|
if (nread == talloc_get_size(namebuf)) {
|
||||||
namebuf = talloc_realloc(
|
namebuf = talloc_realloc(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user