mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 11:00:43 +01:00
Fix clang compilation warnings
This commit is contained in:
parent
ebe27e8368
commit
cf5c020bb1
@ -568,17 +568,11 @@ static void _log_error(const char *message, pn_condition_t *cond)
|
||||
}
|
||||
|
||||
|
||||
// link, session, connection endpoint state flags
|
||||
static const pn_state_t ENDPOINT_ACTIVE = (PN_LOCAL_ACTIVE | PN_REMOTE_ACTIVE);
|
||||
static const pn_state_t ENDPOINT_CLOSING = (PN_LOCAL_ACTIVE | PN_REMOTE_CLOSED);
|
||||
static const pn_state_t ENDPOINT_CLOSED = (PN_LOCAL_CLOSED | PN_REMOTE_CLOSED);
|
||||
|
||||
|
||||
/* is the link ready to send messages? */
|
||||
static sbool _is_ready(pn_link_t *link)
|
||||
{
|
||||
return (link
|
||||
&& pn_link_state(link) == ENDPOINT_ACTIVE
|
||||
&& pn_link_state(link) == (PN_LOCAL_ACTIVE | PN_REMOTE_ACTIVE)
|
||||
&& pn_link_credit(link) > 0);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user