nbis/log: Don't use old-style function declarations
This commit is contained in:
parent
7ed9b0c2f9
commit
70a0d6f0fe
2 changed files with 7 additions and 3 deletions
|
@ -66,7 +66,7 @@ of the software.
|
|||
|
||||
/***************************************************************************/
|
||||
/***************************************************************************/
|
||||
int open_logfile()
|
||||
int open_logfile(void)
|
||||
{
|
||||
#ifdef LOG_REPORT
|
||||
fprintf(stderr, "ERROR : open_logfile : fopen : %s\n", LOG_FILE);
|
||||
|
@ -91,7 +91,7 @@ void print2log(char *fmt, ...)
|
|||
|
||||
/***************************************************************************/
|
||||
/***************************************************************************/
|
||||
int close_logfile()
|
||||
int close_logfile(void)
|
||||
{
|
||||
#ifdef LOG_REPORT
|
||||
fprintf(stderr, "ERROR : close_logfile : fclose : %s\n", LOG_FILE);
|
||||
|
|
|
@ -179,6 +179,10 @@ sed -i 's/[ \t]*$//' `find -name "*.[ch]"`
|
|||
# Remove usebsd.h
|
||||
sed -i '/usebsd.h/d' `find -name "*.[ch]"`
|
||||
|
||||
# Replace functions with empty parameters using (void)
|
||||
sed -i 's/^\([[:space:]]*[[:alnum:]_]\+[\*[:space:]]\+'\
|
||||
'[[:alnum:]_]\+[[:space:]]*\)([[:space:]]*)/\1(void)/g' `find -name "*.[ch]"`
|
||||
|
||||
# Use GLib memory management
|
||||
spatch --sp-file glib-memory.cocci --dir . --in-place
|
||||
|
||||
|
|
Loading…
Reference in a new issue