Fix function prototype

This patch fixes the prototypes with warnings enabled.
Merge pull request #9 from hardening/awakecoding

Fix function prototype