fit in 80 columns, trailing spaces, tabs

This commit is contained in:
Alexandre Ratchov 2016-01-09 09:35:54 +01:00
parent b5a1760af3
commit 97bf660690
6 changed files with 16 additions and 16 deletions

View File

@ -14,7 +14,7 @@ LDADD = -lsndio @ldadd@
@vars@
#
# binaries, documentation, man pages and examples will be installed in
# binaries, documentation, man pages and examples will be installed in
# ${BIN_DIR}, ${MAN1_DIR}
#
BIN_DIR = @bindir@
@ -45,7 +45,7 @@ clean:
OBJS = abuf.o afile.o aucat.o dsp.o utils.o
aucat: ${OBJS}
${CC} ${LDFLAGS} ${LIB} -o aucat ${OBJS} ${LDADD}
${CC} ${LDFLAGS} ${LIB} -o aucat ${OBJS} ${LDADD}
.c.o:
${CC} ${CFLAGS} ${INCLUDE} ${DEFS} -c $<

View File

@ -53,7 +53,7 @@ abuf_init(struct abuf *buf, unsigned int len)
void
abuf_done(struct abuf *buf)
{
#ifdef DEBUG
#ifdef DEBUG
if (buf->used > 0) {
if (log_level >= 3) {
log_puts("deleting non-empty buffer, used = ");

View File

@ -563,7 +563,7 @@ afile_aiff_readhdr(struct afile *f)
log_puts(f->path);
log_puts(": failed to read chunk header\n");
return 0;
}
}
csize = be32_get(&chunk.size);
if (memcmp(chunk.id, aiff_id_comm, 4) == 0) {
if (!afile_aiff_readcomm(f, csize, comp, &nfr))

View File

@ -425,7 +425,7 @@ slot_del(struct slot *s)
xfree(s);
}
static int
static int
play_filt_resamp(struct slot *s, void *res_in, void *out, int todo)
{
int i, offs, vol, nch;
@ -455,7 +455,7 @@ play_filt_resamp(struct slot *s, void *res_in, void *out, int todo)
return todo;
}
static int
static int
play_filt_dec(struct slot *s, void *in, void *out, int todo)
{
void *tmp;
@ -506,7 +506,7 @@ slot_mix_badd(struct slot *s, adata_t *odata)
return done;
}
static int
static int
rec_filt_resamp(struct slot *s, void *in, void *res_out, int todo)
{
int i, vol, offs, nch;
@ -535,7 +535,7 @@ rec_filt_resamp(struct slot *s, void *in, void *res_out, int todo)
return todo;
}
static int
static int
rec_filt_enc(struct slot *s, void *in, void *out, int todo)
{
void *tmp;
@ -1114,7 +1114,7 @@ playrec(char *dev, int mode, int bufsz, char *port)
continue;
log_puts("poll failed\n");
panic();
}
}
if (dev_pstate == DEV_START) {
ev = sio_revents(dev_sh, pfds);
if (ev & POLLHUP) {
@ -1276,7 +1276,7 @@ main(int argc, char **argv)
port = NULL;
dev = NULL;
mode = 0;
while ((c = getopt(argc, argv, "b:c:de:f:h:i:j:no:q:r:t:v:")) != -1) {
switch (c) {
case 'b':
@ -1359,7 +1359,7 @@ main(int argc, char **argv)
if (mode == 0) {
log_puts("at least -i or -o required\n");
return 1;
}
}
if (!playrec(dev, mode, bufsz, port))
return 1;
}

View File

@ -222,7 +222,7 @@ aparams_strtoenc(struct aparams *par, char *istr)
return 0;
done:
par->msb = msb;
par->msb = msb;
par->sig = sig;
par->bits = bits;
par->bps = bps;
@ -516,7 +516,7 @@ enc_init(struct conv *p, struct aparams *par, int nch)
p->bias = (1U << 31) >> p->shift;
} else {
p->bias = 0;
}
}
if (!par->le) {
p->bfirst = par->bps - 1;
p->bnext = -1;
@ -711,7 +711,7 @@ dec_init(struct conv *p, struct aparams *par, int nch)
p->bias = (1U << 31) >> p->shift;
} else {
p->bias = 0;
}
}
if (par->le) {
p->bfirst = par->bps - 1;
p->bnext = -1;

View File

@ -91,7 +91,7 @@ log_putx(unsigned long num)
c += (c < 10) ? '0' : 'a' - 10;
LOG_PUTC(c);
}
} else
} else
LOG_PUTC('0');
}
@ -146,7 +146,7 @@ void *
xmalloc(size_t size)
{
void *p;
p = malloc(size);
if (p == NULL) {
log_puts("failed to allocate ");