Missing void declarations in various function parameter added.

This commit is contained in:
Roland Jax
2014-02-20 16:56:26 +01:00
parent 2817b45c11
commit 521fc4c1ae
8 changed files with 12 additions and 9 deletions
+2 -2
View File
@@ -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
View File
@@ -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);
+1 -1
View File
@@ -101,7 +101,7 @@ log_open(const char *file, int foreground)
}
void
log_close()
log_close(void)
{
if (logfp) {
fflush(logfp);
+1 -1
View File
@@ -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, ...);