[exim-cvs] spamd: Use macro for default priority. Bug 2694

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] spamd: Use macro for default priority. Bug 2694
Gitweb: https://git.exim.org/exim.git/commitdiff/03976d0d27f005d68d6a37b418f168f687d49447
Commit:     03976d0d27f005d68d6a37b418f168f687d49447
Parent:     213da388e7834c078ed5fd2e0063c951db0d8080
Author:     Heiko Schlichting <heiko@???>
AuthorDate: Fri Feb 19 11:18:04 2021 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Feb 19 11:56:15 2021 +0000


    spamd: Use macro for default priority.  Bug 2694
---
 src/src/spam.c | 2 +-
 src/src/spam.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/src/src/spam.c b/src/src/spam.c
index 2860386..544fed1 100644
--- a/src/src/spam.c
+++ b/src/src/spam.c
@@ -35,7 +35,7 @@ spamd->is_failed = FALSE;
spamd->weight = SPAMD_WEIGHT;
spamd->timeout = SPAMD_TIMEOUT;
spamd->retry = 0;
-spamd->priority = 1;
+spamd->priority = SPAMD_PRIORITY;
return 0;
}

diff --git a/src/src/spam.h b/src/src/spam.h
index 2fe7380..312dce8 100644
--- a/src/src/spam.h
+++ b/src/src/spam.h
@@ -21,8 +21,9 @@
# define SHUT_WR 1
#endif

-/* default weight */
+/* Defaults */
#define SPAMD_WEIGHT 1
+#define SPAMD_PRIORITY 1

typedef struct spamd_address_container
{