Fix clang-detected errors related to log_domain_mask_t

This commit is contained in:
Nick Mathewson 2019-07-24 09:08:48 -04:00
parent 5fb070a14d
commit 167d873bde
2 changed files with 3 additions and 3 deletions

View File

@ -1022,7 +1022,7 @@ flush_pending_log_callbacks(void)
do {
SMARTLIST_FOREACH_BEGIN(messages, pending_log_message_t *, msg) {
const int severity = msg->severity;
const int domain = msg->domain;
const log_domain_mask_t domain = msg->domain;
for (lf = logfiles; lf; lf = lf->next) {
if (! lf->callback || lf->seems_dead ||
! (lf->severities->masks[SEVERITY_MASK_IDX(severity)] & domain)) {
@ -1377,7 +1377,7 @@ parse_log_severity_config(const char **cfg_ptr,
if (!strcmp(domain, "*")) {
domains = ~0u;
} else {
int d;
log_domain_mask_t d;
int negate=0;
if (*domain == '~') {
negate = 1;

View File

@ -31,7 +31,7 @@
typedef struct {
int severity;
uint32_t domain;
log_domain_mask_t domain;
char *msg;
} logmsg_t;