blob: 2e26b6dbd9cf61fed0e25906097d9458b5900d02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
Holger Hoffstätte 2025-02-12 14:33:04 UTC
As mentioned on IRC:
The only uses of last_message in configuration.c are
to initialize the buffer with a terminating null. It
seems much easier to move the initialization to log.c
and just remove the declaration/initialization from
configuration.c.
As there is already an initialisation of the buffer
in log.c all that's needed is to zap the two unnecessary
lines:
--- a/Source/configuration.c
+++ b/Source/configuration.c
@@ -67,7 +67,6 @@ void set_default_values() {
extern unsigned short log_closing;
extern unsigned short use_ident;
extern unsigned int repeats;
- extern char *last_message;
dns_expire = DNS_EXPIRE;
log_protocols = NONE;
@@ -79,7 +78,6 @@ void set_default_values() {
log_closing = FALSE;
use_ident = FALSE;
repeats = 0;
- last_message = '\0';
}
void parse_config_file(char *filename) {
|