2012-08-21 17:29:38 +02:00
|
|
|
Index: src/cleanup/cleanup_message.c
|
|
|
|
===================================================================
|
|
|
|
--- src/cleanup/cleanup_message.c.orig
|
|
|
|
+++ src/cleanup/cleanup_message.c
|
|
|
|
@@ -290,7 +290,7 @@ static const char *cleanup_act(CLEANUP_S
|
2007-03-07 22:50:13 +01:00
|
|
|
while (*optional_text && ISSPACE(*optional_text))
|
|
|
|
optional_text++;
|
|
|
|
|
|
|
|
-#define STREQUAL(x,y,l) (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0)
|
|
|
|
+inline int STREQUAL(const char *x, const char *y, size_t l) { return (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0); }
|
|
|
|
#define CLEANUP_ACT_DROP 0
|
|
|
|
|
|
|
|
/*
|
2012-08-21 17:29:38 +02:00
|
|
|
Index: src/local/local_expand.c
|
|
|
|
===================================================================
|
|
|
|
--- src/local/local_expand.c.orig
|
|
|
|
+++ src/local/local_expand.c
|
|
|
|
@@ -114,7 +114,7 @@ static const char *local_expand_lookup(c
|
2007-03-07 22:50:13 +01:00
|
|
|
{
|
|
|
|
LOCAL_EXP *local = (LOCAL_EXP *) ptr;
|
|
|
|
|
|
|
|
-#define STREQ(x,y) (*(x) == *(y) && strcmp((x), (y)) == 0)
|
|
|
|
+inline int STREQ(const char *x, const char *y) { return (*(x) == *(y) && strcmp((x), (y)) == 0); }
|
|
|
|
|
|
|
|
if (STREQ(name, "user")) {
|
|
|
|
return (local->state->msg_attr.user);
|
2012-08-21 17:29:38 +02:00
|
|
|
Index: src/smtpd/smtpd_check.c
|
|
|
|
===================================================================
|
|
|
|
--- src/smtpd/smtpd_check.c.orig
|
|
|
|
+++ src/smtpd/smtpd_check.c
|
|
|
|
@@ -359,6 +359,10 @@ static int unv_from_tf_act;
|
2007-03-07 22:50:13 +01:00
|
|
|
#define CONST_STR(x) ((const char *) vstring_str(x))
|
|
|
|
#define UPDATE_STRING(ptr,val) { if (ptr) myfree(ptr); ptr = mystrdup(val); }
|
|
|
|
|
|
|
|
+inline int STREQ(const char *x, const char *y) { return (*(x) == *(y) && strcmp((x), (y)) == 0); }
|
|
|
|
+inline int STREQUAL(const char *x, const char *y, size_t l) { return (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0); }
|
|
|
|
+inline int STREQN(const char *x, const char *y, size_t n) { return (*(x) == *(y) && strncmp((x), (y), (n)) == 0); }
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* If some decision can't be made due to a temporary error, then change
|
|
|
|
* other decisions into deferrals.
|
2012-08-21 17:29:38 +02:00
|
|
|
@@ -1950,8 +1954,6 @@ static int check_table_result(SMTPD_STAT
|
2007-03-07 22:50:13 +01:00
|
|
|
if (msg_verbose)
|
|
|
|
msg_info("%s: %s %s %s", myname, table, value, datum);
|
|
|
|
|
|
|
|
-#define STREQUAL(x,y,l) (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0)
|
|
|
|
-
|
|
|
|
/*
|
|
|
|
* DUNNO means skip this table. Silently ignore optional text.
|
|
|
|
*/
|
2012-08-21 17:29:38 +02:00
|
|
|
@@ -2934,8 +2936,6 @@ static const char *rbl_expand_lookup(con
|
2011-03-31 00:00:52 +02:00
|
|
|
SMTPD_RBL_EXPAND_CONTEXT *rbl_exp = (SMTPD_RBL_EXPAND_CONTEXT *) context;
|
|
|
|
SMTPD_STATE *state = rbl_exp->state;
|
2007-03-07 22:50:13 +01:00
|
|
|
|
2011-03-31 00:00:52 +02:00
|
|
|
-#define STREQ(x,y) (*(x) == *(y) && strcmp((x), (y)) == 0)
|
|
|
|
-
|
|
|
|
if (state->expand_buf == 0)
|
|
|
|
state->expand_buf = vstring_alloc(10);
|
2007-03-07 22:50:13 +01:00
|
|
|
|
2012-08-21 17:29:38 +02:00
|
|
|
Index: src/util/dict_open.c
|
|
|
|
===================================================================
|
|
|
|
--- src/util/dict_open.c.orig
|
|
|
|
+++ src/util/dict_open.c
|
|
|
|
@@ -476,7 +476,7 @@ ARGV *dict_mapnames()
|
2007-03-07 22:50:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef NO_DYNAMIC_MAPS
|
|
|
|
-#define STREQ(x,y) (x == y || (x[0] == y[0] && strcmp(x,y) == 0))
|
|
|
|
+inline int STREQ(const char *x, const char *y) { return ( x == y || (*(x) == *(y) && strcmp((x), (y)) == 0)); }
|
|
|
|
|
|
|
|
void dict_open_dlinfo(const char *path)
|
|
|
|
{
|