Missing void declarations in various function parameter added.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ log_open(const char *file, int foreground)
|
||||
}
|
||||
|
||||
void
|
||||
log_close()
|
||||
log_close(void)
|
||||
{
|
||||
if (logfp) {
|
||||
fflush(logfp);
|
||||
|
||||
@@ -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, ...);
|
||||
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@
|
||||
|
||||
#include "ebus-decode.h"
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
|
||||
int i, j, end, ret;
|
||||
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ print_msg(const char *pre, const unsigned char *buf, int buflen,
|
||||
}
|
||||
|
||||
void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stdout, "\nUsage: %s [OPTION] <ZZ PB SB NN DBx>\n\n"
|
||||
" <ZZ PB SB NN DBx> spaces within message be removed.\n\n"
|
||||
|
||||
Reference in New Issue
Block a user