Pass more arguments to fio_init_net_cmd()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.c b/server.c
index a70dc14..8bbac70 100644
--- a/server.c
+++ b/server.c
@@ -373,11 +373,7 @@
 	int size = sizeof(*cmd) + len;
 
 	cmd = malloc(size);
-	fio_init_net_cmd(cmd);
-	cmd->opcode	= cpu_to_le16(FIO_NET_CMD_TEXT);
-	cmd->pdu_len	= cpu_to_le32(len);
-	memcpy(&cmd->payload, buf, len);
-
+	fio_init_net_cmd(cmd, FIO_NET_CMD_TEXT, buf, len);
 	fio_net_cmd_crc(cmd);
 
 	fio_send_data(server_fd, cmd, size);