give the argument of 'void' to function definitions which has no arguments

A function definition which has no arguments is traditional-style and deprecated.