Fixed some warning and a misuse of sizeof-argument

Mostly some warning and trying to complete a pull request. The changes in this request should be insignificant but I want to test it out.