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

hi Bohu, this is a trivial patch ^

in the C standard, the semantic of a function declaration `int foo();` is `foo()` accepts any number of parameters. we can make it more strict by declaring functions with no parameter by `int foo(void);`.

regards