summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlichting <heiko@fu-berlin.de>2021-02-19 11:18:04 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2021-02-19 11:56:15 +0000
commit03976d0d27f005d68d6a37b418f168f687d49447 (patch)
treebf0a9b038cb824313d08598f058895dead3dfb78
parent213da388e7834c078ed5fd2e0063c951db0d8080 (diff)
spamd: Use macro for default priority. Bug 2694
-rw-r--r--src/src/spam.c2
-rw-r--r--src/src/spam.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/src/spam.c b/src/src/spam.c
index 286038678..544fed17a 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 2fe73809e..312dce8de 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
{