From be278d2bb8f67e75c4bb2e5a62f217fe79dc66e3 Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 28 Nov 2008 16:16:53 +0000 Subject: Remove (void) args, these just make things ugly. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1811 5417fbe8-f217-4b02-8779-1006273d7864 --- src/tools/anopesmtp.c | 8 ++++---- src/tools/db-convert.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tools') 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); -- cgit