Revision 1c20608e filter/filter.c

View differences:

filter/filter.c
665 665
  return res.val.i;
666 666
}
667 667

  
668
int
669
f_eval_int(struct f_inst *expr)
670
{
671
  struct f_val res;
672

  
673
  f_flags = 0;
674
  f_tmp_attrs = NULL;
675
  f_rte = NULL;
676
  f_rte_old = NULL;
677
  f_rta_copy = NULL;
678
  f_pool = NULL;
679
  res = interpret(expr);
680
  if (res.type != T_INT)
681
    cf_error("Integer expression expected");
682
  return res.val.i;
683
}
684

  
668 685
void
669 686
filters_postconfig(void)
670 687
{

Also available in: Unified diff