From 84838104999dadf3a43010cc6a654b0cfbf0c8ab Mon Sep 17 00:00:00 2001 From: losinshi Date: Sat, 26 Aug 2006 10:03:36 +0000 Subject: [PATCH] depencies of the mailer reduced git-svn-id: file:///home/jan/tmp/wetterstation/trunk@49 dd492736-c11a-0410-ad51-8c26713eaf7f --- cronjob/checksensor/mailer.c | 18 +++++++++++++++++- cronjob/checksensor/mailer.h | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cronjob/checksensor/mailer.c b/cronjob/checksensor/mailer.c index f15a10a..2c091d2 100644 --- a/cronjob/checksensor/mailer.c +++ b/cronjob/checksensor/mailer.c @@ -33,7 +33,6 @@ #include #include #include -#include "definitions.h" #include "mailer.h" #define BUFFSIZE 2048 @@ -42,6 +41,23 @@ #define CC_LINE "Cc: " #define BCC_LINE "Bcc: " +/* Debug --------------------------------------------------------------- */ +#ifdef DEBUG + #define DEBUGOUT1(x) fprintf(stderr,x) + #define DEBUGOUT2(x,y) fprintf(stderr,x,y) + #define DEBUGOUT3(x,y,z) fprintf(stderr,x,y,z) + #define DEBUGOUT4(x,y,z,a) fprintf(stderr,x,y,z,a) + #define DEBUGOUT5(x,y,z,a,b) fprintf(stderr,x,y,z,a,b) + #define FOR(x) for(x) +#else + #define DEBUGOUT1(x) + #define DEBUGOUT2(x,y) + #define DEBUGOUT3(x,y,z) + #define DEBUGOUT4(x,y,z,a) + #define DEBUGOUT5(x,y,z,a,b) + #define FOR(x) +#endif + /* Funktionen */ static int build_header( address_struct *, address_struct *, address_struct *, address_struct *, char *, FILE *); diff --git a/cronjob/checksensor/mailer.h b/cronjob/checksensor/mailer.h index 22cc28a..b9b2b83 100644 --- a/cronjob/checksensor/mailer.h +++ b/cronjob/checksensor/mailer.h @@ -113,3 +113,4 @@ server_vars *get_default_servopts(); /* Liefert einen Text zur Statusmeldung */ const char *get_mail_status_text(int error_no); +