fixed extra semicolons

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
missing initializers added

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
assorted fixes

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>