Variables used only inside the if (maxreaders > 504) { ... } block could sensibly be local to that block.