This comes back around to the comments made
some time ago - you really do need to understand C to be able to do what you're trying to do.
We can help with describing the sorts of things you might need to do, but we're not here to talk you through every line of code you write. You need to understand error messages from the compiler, and be able to read and understand the existing code.
In this case, the compiler is giving you a fairly clear description of the problem - you just need to compare the two lines of code and understand the code, and you should see the problem (if there really is one - this is just a warning, remember).
My guess would be that the warning is because you've not got a
declaration of the function before you used it, and so the compiler has guessed at what you mean by the way you've used it, but not guessed that it is static. In reality, that probably makes no difference - declaring it properly, or removing the static keyword so that it guesses right would probably both stop the warning, but have no impact on how it works.