attr.c: rename arg name attr_nr to avoid shadowing the global one