Some ANSI function prototypes and misc cleanups.
Some ANSI function prototypes and misc cleanups.

only binary change is the line numbers to asserts.

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars