mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Merge "Clang: Fix some more tautological-compare warnings." into 13
This commit is contained in:
@@ -7488,6 +7488,7 @@ static void *skinny_session(void *data)
|
|||||||
struct skinnysession *s = data;
|
struct skinnysession *s = data;
|
||||||
|
|
||||||
int dlen = 0;
|
int dlen = 0;
|
||||||
|
int eventmessage = 0;
|
||||||
struct pollfd fds[1];
|
struct pollfd fds[1];
|
||||||
|
|
||||||
if (!s) {
|
if (!s) {
|
||||||
@@ -7544,7 +7545,8 @@ static void *skinny_session(void *data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (letohl(req->e) < 0) {
|
eventmessage = letohl(req-e);
|
||||||
|
if (eventmessage < 0) {
|
||||||
ast_log(LOG_ERROR, "Event Message is NULL from socket %d, This is bad\n", s->fd);
|
ast_log(LOG_ERROR, "Event Message is NULL from socket %d, This is bad\n", s->fd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -98,7 +98,7 @@ static void security_event_stasis_cb(struct ast_json *json)
|
|||||||
event_type_json = ast_json_object_get(json, "SecurityEvent");
|
event_type_json = ast_json_object_get(json, "SecurityEvent");
|
||||||
event_type = ast_json_integer_get(event_type_json);
|
event_type = ast_json_integer_get(event_type_json);
|
||||||
|
|
||||||
ast_assert(event_type >= 0 && event_type < AST_SECURITY_EVENT_NUM_TYPES);
|
ast_assert((unsigned int)event_type < AST_SECURITY_EVENT_NUM_TYPES);
|
||||||
|
|
||||||
if (!(str = ast_str_thread_get(&security_event_buf,
|
if (!(str = ast_str_thread_get(&security_event_buf,
|
||||||
SECURITY_EVENT_BUF_INIT_LEN))) {
|
SECURITY_EVENT_BUF_INIT_LEN))) {
|
||||||
|
Reference in New Issue
Block a user