diff --git a/ChangeLog b/ChangeLog index 0ab85cf0..beebe6ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ ebus Daemon (ebusd) - ChangeLog =============================== +2014-02-20: +* Missing void declarations in various function parameter added. + 2014-01-22: * autogen.sh modified. diff --git a/lib/ebus-bus.c b/lib/ebus-bus.c index 1d7c930d..b907af4a 100644 --- a/lib/ebus-bus.c +++ b/lib/ebus-bus.c @@ -190,7 +190,7 @@ eb_raw_file_write(const unsigned char *buf, int buflen) int -eb_serial_valid() +eb_serial_valid(void) { int serial; @@ -1164,7 +1164,7 @@ eb_cyc_data_process(const unsigned char *buf, int buflen) } int -eb_cyc_data_recv() +eb_cyc_data_recv(void) { static unsigned char msg[SERIAL_BUFSIZE]; static int msglen = 0; diff --git a/lib/ebus-bus.h b/lib/ebus-bus.h index b1bfa7a9..d3216c97 100644 --- a/lib/ebus-bus.h +++ b/lib/ebus-bus.h @@ -169,7 +169,7 @@ int eb_raw_file_write(const unsigned char *buf, int buflen); * @brief Check if serial FD is vaild. * @return 0 ok | -1 error */ -int eb_serial_valid(); +int eb_serial_valid(void); /** * @brief Open serial device in raw mode. 1 Byte is then minimum input length. @@ -327,7 +327,7 @@ int eb_cyc_data_process(const unsigned char *buf, int buflen); * @brief handle reading cycle ebus data * @return 0-x length of collected msg | -1 error */ -int eb_cyc_data_recv(); +int eb_cyc_data_recv(void); diff --git a/lib/log.c b/lib/log.c index aa27a58f..e4048252 100644 --- a/lib/log.c +++ b/lib/log.c @@ -101,7 +101,7 @@ log_open(const char *file, int foreground) } void -log_close() +log_close(void) { if (logfp) { fflush(logfp); diff --git a/lib/log.h b/lib/log.h index d70d3515..f0f08abd 100644 --- a/lib/log.h +++ b/lib/log.h @@ -49,7 +49,7 @@ void log_file(FILE *fp); void log_level(char *lvl); int log_open(const char *logfile, int foreground); -void log_close(); +void log_close(void); void log_print(unsigned char lvl, const char *txt, ...); diff --git a/tools/check.c b/tools/check.c index 0cecf876..bb87ecfe 100644 --- a/tools/check.c +++ b/tools/check.c @@ -26,7 +26,7 @@ #include "ebus-decode.h" -int main() { +int main(void) { int i, j, end, ret; diff --git a/tools/csv.c b/tools/csv.c index 7253d01c..eb838e8d 100644 --- a/tools/csv.c +++ b/tools/csv.c @@ -42,7 +42,7 @@ static char loglevel[] = {"ALL"}; void -usage() +usage(void) { fprintf(stdout, "\nUsage: %s [OPTION] cfgdir\n\n" " -a --all print ALL\n" diff --git a/tools/ebus_send.c b/tools/ebus_send.c index 27e02b12..224092a4 100644 --- a/tools/ebus_send.c +++ b/tools/ebus_send.c @@ -55,7 +55,7 @@ print_msg(const char *pre, const unsigned char *buf, int buflen, } void -usage() +usage(void) { fprintf(stdout, "\nUsage: %s [OPTION] \n\n" " spaces within message be removed.\n\n"