case T_IP:
case T_PREFIX:
return ipa_compare(v1.val.px.ip, v2.val.px.ip);
- default: { printf( "Error comparing\n" ); return CMP_ERROR; }
+ default:
+ return CMP_ERROR;
}
}
* (struct f_val *) sym->aux2 = v2;
break;
default:
- bug( "Set to invalid type\n" );
+ bug( "Set to invalid type" );
}
break;
break;
}
default:
- bug( "Invalid type for rta access (%x)\n" );
+ bug( "Invalid type for rta access (%x)", res.type );
}
}
break;
case P('e','a'): /* Access to extended attributes */
{
eattr *e = NULL;
- if (!(f_flags & FF_OUTGOING))
+ if (!(f_flags & FF_FORCE_TMPATTR))
e = ea_find( (*f_rte)->attrs->eattrs, what->a2.i );
if (!e)
e = ea_find( (*f_tmp_attrs), what->a2.i );
- if ((!e) && (f_flags & FF_OUTGOING))
+ if ((!e) && (f_flags & FF_FORCE_TMPATTR))
e = ea_find( (*f_rte)->attrs->eattrs, what->a2.i );
if (!e) {
case P('e','S'):
ONEARG;
if (v1.type != what->aux)
- runtime("Wrong type when setting dynamic attribute\n");
+ runtime("Wrong type when setting dynamic attribute");
{
struct ea_list *l = lp_alloc(f_pool, sizeof(struct ea_list) + sizeof(eattr));
break;
}
- if (!(what->aux & EAF_TEMP) && (!(f_flags & FF_OUTGOING))) {
- *f_rte = rte_do_cow(*f_rte);
+ if (!(what->aux & EAF_TEMP) && (!(f_flags & FF_FORCE_TMPATTR))) {
+ *f_rte = rte_cow(*f_rte);
l->next = (*f_rte)->attrs->eattrs;
(*f_rte)->attrs->eattrs = l;
} else {
switch(res.type) {
case T_INT: res.val.i = v1.val.px.len; break;
case T_IP: res.val.px.ip = v1.val.px.ip; break;
- default: bug( "Unknown prefix to conversion\n" );
+ default: bug( "Unknown prefix to conversion" );
}
break;
case 'r':
}
}
if (!t->data)
- die( "Impossible: no code associated!\n" );
+ bug( "Impossible: no code associated!" );
return interpret(t->data);
}
break;