Fix nested comment
Fix initializer types
Fix missing return value
Fix function name typo
Fix return type
Add missing prototype
Fix warning by replacing dummyread assignment with explicit cast to void
Remove static qualifier from non-inlined function
Fix parenthesis warning