summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-03-12 19:02:31 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-03-12 19:02:31 +0000
commit1d904e0470fed2e5c7a867f63d39ee44dbe80a2a (patch)
tree22815216c1596f204e6f47f9ed37638178d5569c
parentecc7ae95e36be550fa4b47de2d8dfc7115eac9cb (diff)
Compiler quietening. Bug 2983
-rw-r--r--src/src/local_scan.h2
-rw-r--r--src/src/readconf.c11
2 files changed, 3 insertions, 10 deletions
diff --git a/src/src/local_scan.h b/src/src/local_scan.h
index 69b3c6cdb..c88994442 100644
--- a/src/src/local_scan.h
+++ b/src/src/local_scan.h
@@ -133,7 +133,7 @@ typedef struct {
union {
void * value;
long offset;
- void (* fn)();
+ void (* fn)(const uschar *, const uschar *, unsigned);
} v;
} optionlist;
#define OPT_OFF(s, field) {.offset = offsetof(s, field)}
diff --git a/src/src/readconf.c b/src/src/readconf.c
index 6dba11ca1..3b26e87d5 100644
--- a/src/src/readconf.c
+++ b/src/src/readconf.c
@@ -2356,11 +2356,8 @@ switch (type)
}
case opt_func:
- {
- void (*fn)() = ol->v.fn;
- fn(name, s, 0);
+ ol->v.fn(name, s, 0);
break;
- }
}
return TRUE;
@@ -2384,11 +2381,7 @@ readconf_printtime(int t)
int s, m, h, d, w;
uschar *p = time_buffer;
-if (t < 0)
- {
- *p++ = '-';
- t = -t;
- }
+if (t < 0) *p++ = '-', t = -t;
s = t % 60;
t /= 60;