ipfilter printfieldhdr: remove set-but-not-unused vars
(cherry picked from commit edcdd4f6445ad50c8f7c6e974d0216c5be9356d5)