summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2014-06-20 13:40:24 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2014-06-20 13:40:24 +0100
commit7e75538e9b2d735ebe7a2832482353861ec4dff0 (patch)
tree356fc7bc0f7628327983cd7b0fbcda7f207f5914 /src
parent7864a644b38feedb3fe1ba1e27f636299d7b48a5 (diff)
Use enum for var_entry type
Diffstat (limited to 'src')
-rw-r--r--src/src/expand.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index b02ea30a2..9d73803a5 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -348,25 +348,9 @@ enum {
};
-/* Type for main variable table */
-
-typedef struct {
- const char *name;
- int type;
- void *value;
-} var_entry;
-
-/* Type for entries pointing to address/length pairs. Not currently
-in use. */
-
-typedef struct {
- uschar **address;
- int *length;
-} alblock;
-
/* Types of table entry */
-enum {
+enum vtypes {
vtype_int, /* value is address of int */
vtype_filter_int, /* ditto, but recognized only when filtering */
vtype_ino, /* value is address of ino_t (not always an int) */
@@ -399,7 +383,23 @@ enum {
#ifndef DISABLE_DKIM
,vtype_dkim /* Lookup of value in DKIM signature */
#endif
- };
+};
+
+/* Type for main variable table */
+
+typedef struct {
+ const char *name;
+ enum vtypes type;
+ void *value;
+} var_entry;
+
+/* Type for entries pointing to address/length pairs. Not currently
+in use. */
+
+typedef struct {
+ uschar **address;
+ int *length;
+} alblock;
static uschar * fn_recipients(void);