Pass WARNS=5.
This commit is contained in:
parent
524e377411
commit
1a91378aae
|
@ -1,9 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.3 2010/09/01 09:04:16 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2013/08/11 06:31:00 dholland Exp $
|
||||
|
||||
PROG= audiocfg
|
||||
SRCS= audiodev.c drvctl.c dtmf.c
|
||||
SRCS+= main.c
|
||||
WARNS= 3
|
||||
|
||||
LDADD+= -lprop -lm
|
||||
DPADD+= $(LIBPROP) $(LIBM)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: audiodev.c,v 1.4 2010/09/03 19:20:37 jmcneill Exp $ */
|
||||
/* $NetBSD: audiodev.c,v 1.5 2013/08/11 06:31:00 dholland Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -269,15 +269,19 @@ audiodev_test(struct audiodev *adev, unsigned int chanmask)
|
|||
|
||||
off = 0;
|
||||
while (buflen > 0) {
|
||||
size_t wlen = info.play.buffer_size;
|
||||
size_t wlen;
|
||||
ssize_t ret;
|
||||
|
||||
wlen = info.play.buffer_size;
|
||||
if (wlen > buflen)
|
||||
wlen = buflen;
|
||||
wlen = write(adev->fd, (char *)buf + off, wlen);
|
||||
if (wlen == -1) {
|
||||
ret = write(adev->fd, (char *)buf + off, wlen);
|
||||
if (ret == -1) {
|
||||
perror("write");
|
||||
rv = -1;
|
||||
goto done;
|
||||
}
|
||||
wlen = ret;
|
||||
off += wlen;
|
||||
buflen -= wlen;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: audiodev.h,v 1.3 2010/09/02 02:17:35 jmcneill Exp $ */
|
||||
/* $NetBSD: audiodev.h,v 1.4 2013/08/11 06:31:00 dholland Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -45,7 +45,7 @@ struct audiodev {
|
|||
dev_t dev;
|
||||
bool defaultdev;
|
||||
|
||||
int pchan;
|
||||
unsigned pchan;
|
||||
|
||||
audio_device_t audio_device;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dtmf.c,v 1.2 2010/09/01 21:54:00 jmcneill Exp $ */
|
||||
/* $NetBSD: dtmf.c,v 1.3 2013/08/11 06:31:00 dholland Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
|
@ -45,7 +45,8 @@ dtmf_create(int16_t *buf, unsigned int sample_rate,
|
|||
unsigned short sample_length, unsigned short channels,
|
||||
unsigned int chanmask, float freq1, float freq2)
|
||||
{
|
||||
int c, i;
|
||||
int c;
|
||||
unsigned i;
|
||||
size_t sample_count = sample_rate * sample_length;
|
||||
|
||||
for (i = 0; i < sample_count; i++) {
|
||||
|
|
Loading…
Reference in New Issue