projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/*: missing statics
[fio.git]
/
client.c
diff --git
a/client.c
b/client.c
index 43825d9e2708aff7155242ae676eb9e5931ca49c..ea1a4d292d9899abf1b0bd9638673b020a08fbda 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-3,7
+3,7
@@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
-#include <
sys/
poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@
-1339,7
+1339,7
@@
static int fio_client_handle_iolog(struct fio_client *client,
sprintf(log_pathname, "%s.%s", pdu->name, client->hostname);
if (store_direct) {
sprintf(log_pathname, "%s.%s", pdu->name, client->hostname);
if (store_direct) {
- ssize_t
ret
;
+ ssize_t
wrote
;
size_t sz;
int fd;
size_t sz;
int fd;
@@
-1353,10
+1353,10
@@
static int fio_client_handle_iolog(struct fio_client *client,
}
sz = cmd->pdu_len - sizeof(*pdu);
}
sz = cmd->pdu_len - sizeof(*pdu);
-
ret
= write(fd, pdu->samples, sz);
+
wrote
= write(fd, pdu->samples, sz);
close(fd);
close(fd);
- if (
ret
!= sz) {
+ if (
wrote
!= sz) {
log_err("fio: short write on compressed log\n");
ret = 1;
goto out;
log_err("fio: short write on compressed log\n");
ret = 1;
goto out;