|
53 | 53 | #include <pwd.h>
|
54 | 54 | #include <signal.h>
|
55 | 55 | #include <sys/uio.h>
|
| 56 | +#include <stdbool.h> |
56 | 57 |
|
57 | 58 | #include "all-io.h"
|
58 | 59 | #include "c.h"
|
@@ -131,16 +132,15 @@ struct logger_ctl {
|
131 | 132 |
|
132 | 133 | void (*syslogfp)(struct logger_ctl *ctl);
|
133 | 134 |
|
134 |
| - unsigned int |
135 |
| - unix_socket_errors:1, /* whether to report or not errors */ |
136 |
| - noact:1, /* do not write to sockets */ |
137 |
| - prio_prefix:1, /* read priority from input */ |
138 |
| - stderr_printout:1, /* output message to stderr */ |
139 |
| - rfc5424_time:1, /* include time stamp */ |
140 |
| - rfc5424_tq:1, /* include time quality markup */ |
141 |
| - rfc5424_host:1, /* include hostname */ |
142 |
| - skip_empty_lines:1, /* do not send empty lines when processing files */ |
143 |
| - octet_count:1; /* use RFC6587 octet counting */ |
| 135 | + bool unix_socket_errors, /* whether to report or not errors */ |
| 136 | + noact, /* do not write to sockets */ |
| 137 | + prio_prefix, /* read priority from input */ |
| 138 | + stderr_printout, /* output message to stderr */ |
| 139 | + rfc5424_time, /* include time stamp */ |
| 140 | + rfc5424_tq, /* include time quality markup */ |
| 141 | + rfc5424_host, /* include hostname */ |
| 142 | + skip_empty_lines, /* do not send empty lines when processing files */ |
| 143 | + octet_count; /* use RFC6587 octet counting */ |
144 | 144 | };
|
145 | 145 |
|
146 | 146 | #define is_connected(_ctl) ((_ctl)->fd >= 0)
|
|
0 commit comments