fixing: unused variables; struct/class decl mismatch; in_port_t mismatch; typeof vs __typeof__ warnings; double paranthesis warns