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:
parent
979a61cd5f
commit
e7df392754
5 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
Loading…
Add table
Reference in a new issue