Ensure void in empty parameter list

According to ISO/IEC 9899:2011, section 6.7.6.3, "Function declarators
(including prototypes)": "The special case of an unnamed parameter of
type void as the only item in the list specifies that the function has
no parameters."
Signed-off-by: 's avatarGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
parent f67588d0
......@@ -55,7 +55,7 @@
volatile int toStop = 0;
void usage()
void usage(void)
{
printf("MQTT stdin publisher\n");
printf("Usage: stdinpub topicname <options>, where options are:\n");
......
......@@ -76,7 +76,7 @@ struct
};
void usage()
void usage(void)
{
printf("MQTT stdin publisher\n");
printf("Usage: stdinpub topicname <options>, where options are:\n");
......
......@@ -75,7 +75,7 @@ struct
};
void usage()
void usage(void)
{
printf("MQTT stdin publisher\n");
printf("Usage: stdinpub topicname <options>, where options are:\n");
......
......@@ -76,7 +76,7 @@ struct opts_struct
};
void usage()
void usage(void)
{
printf("MQTT stdout subscriber\n");
printf("Usage: stdoutsub topicname <options>, where options are:\n");
......
......@@ -88,7 +88,7 @@ struct
};
void usage()
void usage(void)
{
printf("MQTT stdout subscriber\n");
printf("Usage: stdoutsub topicname <options>, where options are:\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment