version 1.26, 2009/08/27 06:31:13 |
version 1.27, 2009/08/27 06:54:23 |
|
|
struct abuf *rbuf; |
struct abuf *rbuf; |
|
|
f->vol = vol; |
f->vol = vol; |
if (f->pstate <= SOCK_START) |
|
f->lastvol = f->vol; |
|
rbuf = LIST_FIRST(&f->pipe.file.rproc->obuflist); |
rbuf = LIST_FIRST(&f->pipe.file.rproc->obuflist); |
if (!rbuf) { |
if (!rbuf) { |
DPRINTF("sock_setvol: no read buffer yet\n"); |
DPRINTF("sock_setvol: no read buffer yet\n"); |
|
|
/* |
/* |
* if volume changed build a SETVOL message |
* if volume changed build a SETVOL message |
*/ |
*/ |
if (f->vol != f->lastvol) { |
if (f->pstate >= SOCK_START && f->vol != f->lastvol) { |
DPRINTFN(4, "sock_buildmsg: %p: SETVOL: %d\n", f, f->vol); |
DPRINTFN(4, "sock_buildmsg: %p: SETVOL: %d\n", f, f->vol); |
AMSG_INIT(&f->wmsg); |
AMSG_INIT(&f->wmsg); |
f->wmsg.cmd = AMSG_SETVOL; |
f->wmsg.cmd = AMSG_SETVOL; |