Skip to content

Commit 569f997

Browse files
committed
Remove unused #defines
1 parent 9f61859 commit 569f997

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

libopenarc/arc-internal.h

-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@
3232
#define BUFRSZ 2048 /* base temp buffer size */
3333
#define BASE64SIZE(x) (((x + 2) / 3) * 4)
3434
/* base64 encoding growth ratio */
35-
#define MAXADDRESS 256 /* biggest user@host we accept */
3635
#define MAXBUFRSZ 65536 /* max temp buffer size */
37-
#define MAXCNAMEDEPTH 3 /* max. CNAME recursion we allow */
38-
#define MAXHEADERS 32768 /* buffer for caching headers */
39-
#define MAXLABELS 16 /* max. labels we allow */
4036
#define MAXTAGNAME 8 /* biggest tag name */
4137

4238
#define NPRINTABLE 95 /* number of printable characters */

libopenarc/arc.c

+1-16
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,12 @@ void arc_error(ARC_MESSAGE *, const char *, ...);
7878

7979
#define BUFRSZ 2048
8080
#define DEFERRLEN 128
81-
#define DEFTIMEOUT 10
8281

8382
/* generic array size macro */
8483
#define NITEMS(array) ((int) (sizeof(array) / sizeof(array[0])))
8584

86-
/* local definitions needed for DNS queries */
87-
#define MAXPACKET 8192
88-
#if defined(__RES) && (__RES >= 19940415)
89-
#define RES_UNC_T char *
90-
#else /* __RES && __RES >= 19940415 */
91-
#define RES_UNC_T unsigned char *
92-
#endif /* __RES && __RES >= 19940415 */
93-
94-
#ifndef T_AAAA
95-
#define T_AAAA 28
96-
#endif /* ! T_AAAA */
97-
9885
/* macros */
99-
#define ARC_ISLWSP(x) ((x) == 011 || (x) == 013 || (x) == 014 || (x) == 040)
100-
101-
#define ARC_PHASH(x) ((x) -32)
86+
#define ARC_PHASH(x) ((x) -32)
10287

10388
/*
10489
** ARC_ERROR -- log an error into a DKIM handle

openarc/openarc.h

+1-11
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
#ifndef _OPENARC_H_
1010
#define _OPENARC_H_
1111

12-
#define ARCF_PRODUCT "OpenARC Filter"
13-
#define ARCF_PRODUCTNS "OpenARC-Filter"
12+
#define ARCF_PRODUCT "OpenARC Filter"
1413

1514
#include "build-config.h"
1615

@@ -34,23 +33,14 @@
3433

3534
/* defaults, limits, etc. */
3635
#define BUFRSZ 2048
37-
#define CONFIGOPTS "Ac:flnp:P:rt:u:vV"
3836
#define DEFCONFFILE CONFIG_BASE "/openarc.conf"
39-
#define DEFINTERNAL "csl:127.0.0.1,::1"
4037
#define DEFMAXHDRSZ 65536
4138
#define HOSTUNKNOWN "unknown-host"
4239
#define JOBIDUNKNOWN "(unknown-jobid)"
4340
#define LOCALHOST "127.0.0.1"
4441
#define LOCALHOST6 "::1"
45-
#define MAXADDRESS 256
4642
#define MAXARGV 65536
4743
#define MAXBUFRSZ 65536
48-
#define MAXHDRCNT 64
49-
#define MAXHDRLEN 78
50-
#define MAXSIGNATURE 1024
51-
#define MTAMARGIN 78
52-
#define NULLDOMAIN "(invalid)"
53-
#define UNKNOWN "unknown"
5444

5545
#define AUTHRESULTSHDR "Authentication-Results"
5646
#define SWHEADERNAME "ARC-Filter"

0 commit comments

Comments
 (0)