use foo(void) instead of foo() in function declarations

in C standard, the semantic of function declaration `int foo();` is
`foo()` accepts any number of parameters. we can make it more strict by
delcaring functions with no parameter by `int foo(void);`.
Merge pull request #58 from Fleurer/patch/1

use foo(void) instead of foo() in function declarations