Compiler quietening: C fn ptrs are officially not intercastable with object pointers
[exim.git] / src / src / local_scan.h
index 23da01b2b7c9e27322a35155e6ffa3edc209fa80..00a45bd4f49cf67c8f2d942980bffd3b9f8a6d58 100644 (file)
@@ -120,9 +120,12 @@ typedef struct header_line {
 /* Entries in lists options are in this form. */
 
 typedef struct {
-  const char   *name; /* should have been uschar but too late now */
-  int           type;
-  void         *value;
+  const char * name; /* should have been uschar but too late now */
+  int          type;
+  union {
+    void *     value;
+    void (*    fn)();
+  } v;
 } optionlist;
 
 /* Structure for holding information about an envelope address. The errors_to