client: Inline ring_to_file() into new send_input()

In preparation for the next commit.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-06-25 10:27:48 +02:00
parent 53c8794ef8
commit 26372eb85d
3 changed files with 20 additions and 4 deletions

View file

@ -35,7 +35,6 @@
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <sys/uio.h>
#include "ringbuf.h"
/*
@ -219,7 +218,7 @@ ring_from_file(struct ring *r, int fd)
* @iov[] must have at least two elements.
* Return number of elements used (zero for an empty ring buffer).
*/
static int
int
ring_to_iovec(struct ring *r, struct iovec iov[])
{
unsigned cons = r->cons % RING_SIZE;