From fa0cd74200e5f2786f2d1b2d5e24dfc60325b1cd Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 8 Feb 2014 09:46:13 +0100 Subject: [PATCH] use the propoper integer size with AMSG_ISSET --- sndiod/sock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sndiod/sock.c b/sndiod/sock.c index 951b7ef..e7e8f34 100644 --- a/sndiod/sock.c +++ b/sndiod/sock.c @@ -616,7 +616,9 @@ sock_setpar(struct sock *f) struct slot *s = f->slot; struct dev *d = s->dev; struct amsg_par *p = &f->rmsg.u.par; - unsigned int min, max, rate, pchan, rchan, appbufsz; + unsigned int min, max; + uint32_t rate, appbufsz; + uint16_t pchan, rchan; rchan = ntohs(p->rchan); pchan = ntohs(p->pchan);