Review/fix compilation warnings

These commits remove two unused variables from main.c and fix the definition of badsector_magic so that sizeof() returns the right size.