remove deadcode, from Michael W. Bombardieri <mb at ii.net>

This commit is contained in:
Alexandre Ratchov 2011-04-28 09:17:18 +02:00
parent 32a1e3d36e
commit 52d91a6fa6
2 changed files with 3 additions and 24 deletions

View File

@ -45,6 +45,7 @@ int aparams_ctltovol[128] = {
*/
struct aparams aparams_none = { 1, 0, 0, 0, 0, 0, 0, 0 };
#ifdef DEBUG
/*
* Generate a string corresponding to the encoding in par,
* return the length of the resulting string.
@ -74,6 +75,7 @@ aparams_enctostr(struct aparams *par, char *ostr)
*p++ = '\0';
return p - ostr - 1;
}
#endif /* DEBUG */
/*
* Parse an encoding string, examples: s8, u8, s16, s16le, s24be ...
@ -221,29 +223,6 @@ aparams_eqenc(struct aparams *par1, struct aparams *par2)
return 1;
}
/*
* Return true if both parameters are the same.
*/
int
aparams_eq(struct aparams *par1, struct aparams *par2)
{
if (!aparams_eqenc(par1, par2) ||
par1->cmin != par2->cmin ||
par1->cmax != par2->cmax ||
par1->rate != par2->rate)
return 0;
return 1;
}
/*
* Return true if first channel range includes second range.
*/
int
aparams_subset(struct aparams *subset, struct aparams *set)
{
return subset->cmin >= set->cmin && subset->cmax <= set->cmax;
}
/*
* Grow channels range and sample rate of ``set'' in order ``subset'' to
* become an actual subset of it.

View File

@ -158,7 +158,7 @@ aproc_new(struct aproc_ops *ops, char *name)
p = malloc(sizeof(struct aproc));
if (p == NULL)
err(1, name);
err(1, "%s", name);
LIST_INIT(&p->ins);
LIST_INIT(&p->outs);
p->name = name;