8000 logger: drop pointless bitfields · util-linux/util-linux@0a21358 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a21358

Browse files
committed
logger: drop pointless bitfields
References: 63d7937 Signed-off-by: Karel Zak <kzak@redhat.com>
1 parent f7dbf15 commit 0a21358

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

misc-utils/logger.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <pwd.h>
5454
#include <signal.h>
5555
#include <sys/uio.h>
56+
#include <stdbool.h>
5657

5758
#include "all-io.h"
5859
#include "c.h"
@@ -131,16 +132,15 @@ struct logger_ctl {
131132

132133
void (*syslogfp)(struct logger_ctl *ctl);
133134

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 */
144144
};
145145

146146
#define is_connected(_ctl) ((_ctl)->fd >= 0)

0 commit comments

Comments
 (0)
0