From: mmj Date: Wed, 9 Jun 2004 09:07:59 +0000 (+1000) Subject: Fix some directory leaks which could cause corruption. X-Git-Tag: RELEASE_1_0_0~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c3bb897028fc92290f508ffe94124d0241d2564;p=thirdparty%2Fmlmmj.git Fix some directory leaks which could cause corruption. --- diff --git a/include/mlmmj-maintd.h b/include/mlmmj-maintd.h index ed0ce0a3..a94b9b8e 100644 --- a/include/mlmmj-maintd.h +++ b/include/mlmmj-maintd.h @@ -20,4 +20,18 @@ int clean_nolongerbouncing(const char *listdir); int probe_bouncers(const char *listdir, const char *mlmmjbounce); int unsub_bouncers(const char *listdir); +#define WRITELOGOK writen(maintdlogfd, " ... ok\n" , sizeof(" ... ok\n")); + +#define WRITEMAINTLOG4( s1, s2, s3, s4 ) do { \ + logstr = concatstr( s1, s2, s3, s4 ) ;\ + writen(maintdlogfd, logstr, strlen(logstr)); \ + free(logstr); \ + } while (0); + +#define WRITEMAINTLOG6( s1, s2, s3, s4, s5, s6 ) do { \ + logstr = concatstr( s1, s2, s3, s4, s5, s6 ) ;\ + writen(maintdlogfd, logstr, strlen(logstr)); \ + free(logstr); \ + } while (0); + #endif /* MLMMJ_MAINTD_H */