1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

moved source files to lib directory

This commit is contained in:
Steffen Vogel 2015-12-13 20:30:16 +01:00
parent 979a61cd5f
commit e7df392754
5 changed files with 3 additions and 2 deletions

View file

@ -146,6 +146,7 @@ int hook_fir(struct path *p, struct hook *h, int when)
{
/** @todo make this configurable via hook parameters */
const static double coeffs[] = HOOK_FIR_COEFFS;
char *end;
struct private {
double *coeffs;
@ -163,8 +164,8 @@ int hook_fir(struct path *p, struct hook *h, int when)
private->coeffs = memdup(coeffs, sizeof(coeffs));
private->history = alloc(sizeof(coeffs));
private->index = strtol(h->parameter, NULL, 10);
if (!private->index)
private->index = strtol(h->parameter, &end, 10);
if (errno == EINVAL || errno == ERANGE)
error("Invalid parameter '%s' for hook 'fir'", h->parameter);
break;