openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nbd/3.19-r0/nbd-3.19/nbd-server.c
static inline void consume(CLIENT* c, size_t len, void* buf, size_t bufsiz)
{
    size_t curlen;
    while (len > 0)
    {
        curlen = (len > bufsiz) ? bufsiz : len;
        socket_read(c, buf, curlen);
        len -= curlen;
    }
}
/**
 * Consume data from a socket that we don't want
 *
 * @param c the client to read from
 * @param len the number of bytes to consume
 * @param buf a buffer
 * @param bufsiz the size of the buffer
 **/
Consume data from a socket that we don't want
@param c the client to read from
@param len the number of bytes to consume
@param buf a buffer
@param bufsiz the size of the buffer
Consume data from a socket that we don ' t want @param c the client to read from @param len the number of bytes to consume @param buf a buffer @param bufsiz the size of the buffer
static inline void consume(CLIENT* c, size_t len, void* buf, size_t bufsiz)
{
    size_t curlen;
    while (len > 0)
    {
        curlen = (len > bufsiz) ? bufsiz : len;
        socket_read(c, buf, curlen);
        len -= curlen;
    }
}
static inline void consume ( CLIENT * c , size_t len , void * buf , size_t bufsiz ) { size_t curlen ; while ( len > 0 ) { curlen = ( len > bufsiz ) ? bufsiz : len ; socket_read ( c , buf , curlen ) ; len -= curlen ; } }
Consume data from a socket that we don't want
 @param c the client to read from
 @param len the number of bytes to consume
 @param buf a buffer
 @param bufsiz the size of the buffer
Consume data from a socket that we don ' t want @param c the client to read from @param len the number of bytes to consume @param buf a buffer @param bufsiz the size of the buffer