diff options
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/anopesmtp.c | 8 | ||||
| -rw-r--r-- | src/tools/db-convert.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/anopesmtp.c b/src/tools/anopesmtp.c index d00bcdc18..c775921bd 100644 --- a/src/tools/anopesmtp.c +++ b/src/tools/anopesmtp.c @@ -60,7 +60,7 @@ static int get_logname(char *name, int count, struct tm *tm) /* Close the log file. */ -void close_log(void) +void close_log() { if (!logfile) return; @@ -70,7 +70,7 @@ void close_log(void) /*************************************************************************/ -static void remove_log(void) +static void remove_log() { time_t t; struct tm tm; @@ -91,7 +91,7 @@ static void remove_log(void) /* Open the log file. Return -1 if the log file could not be opened, else * return 0. */ -int open_log(void) +int open_log() { char name[PATH_MAX]; @@ -109,7 +109,7 @@ int open_log(void) /*************************************************************************/ -static void checkday(void) +static void checkday() { time_t t; struct tm tm; diff --git a/src/tools/db-convert.c b/src/tools/db-convert.c index 7093f2960..38c2e675d 100644 --- a/src/tools/db-convert.c +++ b/src/tools/db-convert.c @@ -1649,7 +1649,7 @@ int b64_decode(const char *src, char *target, size_t targsize) case 2: /* Valid, means one byte of info */ /* Skip any number of spaces. */ - for ((void) NULL; ch != '\0'; ch = *src++) + for (; ch != '\0'; ch = *src++) if (!isspace(ch)) break; /* Make sure there is another trailing = sign. */ @@ -1664,7 +1664,7 @@ int b64_decode(const char *src, char *target, size_t targsize) * We know this char is an =. Is there anything but * whitespace after it? */ - for ((void) NULL; ch != '\0'; ch = *src++) + for (; ch != '\0'; ch = *src++) if (!isspace(ch)) return (-1); |
