projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings about unused fwrite() return value
[fio.git]
/
client.c
diff --git
a/client.c
b/client.c
index d538e8ab95cdecb6dabde63dbf7469c1416fef80..01f64086ae6bbc4f1fc8bf154fef1064008e27f5 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-491,10
+491,11
@@
static int handle_client(struct fio_client *client, int one)
break;
case FIO_NET_CMD_TEXT: {
const char *buf = (const char *) cmd->payload;
break;
case FIO_NET_CMD_TEXT: {
const char *buf = (const char *) cmd->payload;
+ int fio_unused ret;
if (!client->skip_newline)
fprintf(f_out, "Client <%s>: ", client->hostname);
if (!client->skip_newline)
fprintf(f_out, "Client <%s>: ", client->hostname);
- fwrite(buf, cmd->pdu_len, 1, f_out);
+
ret =
fwrite(buf, cmd->pdu_len, 1, f_out);
fflush(f_out);
client->skip_newline = strchr(buf, '\n') == NULL;
free(cmd);
fflush(f_out);
client->skip_newline = strchr(buf, '\n') == NULL;
free(cmd);