diff options
author | John Denker <jsd@av8n.com> | 2012-07-29 16:50:11 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-29 16:50:11 -0700 |
commit | d2564d25e802d1ee3230cf045c4940e836b5c6a2 (patch) | |
tree | ddc7c3feac95d01ccb859596c21f218b122060c5 /tools/qq_exit_codes.h | |
parent | 92280557b6bdde0b3e1d8fa93ba2fae494d5c355 (diff) |
split ltgrey (and libltgrey) off from greylist;
put some utility functions into their own file.
Diffstat (limited to 'tools/qq_exit_codes.h')
-rw-r--r-- | tools/qq_exit_codes.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/qq_exit_codes.h b/tools/qq_exit_codes.h new file mode 100644 index 0000000..2af6848 --- /dev/null +++ b/tools/qq_exit_codes.h @@ -0,0 +1,15 @@ +// error exit codes, mostly as stated in qmail.c +#define qq_exit_codes \ +foo(good, 0) ;\ +foo(spam, 21) ;\ +foo(penaltybox, 22) ;\ +foo(badDNS, 23) ;\ +foo(usage, 39) ;\ +foo(greylisting, 70) ;\ +foo(syserr, 71) ;\ +foo(comerr, 74) ; + +// expand the codes to make some <const int> names: +#define foo(name, num) const int ex_ ## name = num +qq_exit_codes +#undef foo |