mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Allow Asterisk to compile under GCC 4.10
This resolves a large number of compiler warnings from GCC 4.10 which cause the build to fail under dev mode. The vast majority are signed/unsigned mismatches in printf-style format strings. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@413586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -291,7 +291,7 @@ static int encode_open_type(const struct ast_udptl *udptl, uint8_t *buf, unsigne
|
||||
if ((enclen = encode_length(buf, len, num_octets)) < 0)
|
||||
return -1;
|
||||
if (enclen + *len > buflen) {
|
||||
ast_log(LOG_ERROR, "UDPTL (%s): Buffer overflow detected (%d + %d > %d)\n",
|
||||
ast_log(LOG_ERROR, "UDPTL (%s): Buffer overflow detected (%u + %u > %u)\n",
|
||||
LOG_TAG(udptl), enclen, *len, buflen);
|
||||
return -1;
|
||||
}
|
||||
@@ -369,7 +369,7 @@ static int udptl_rx_packet(struct ast_udptl *s, uint8_t *buf, unsigned int len)
|
||||
if (seq_no - i >= s->rx_seq_no) {
|
||||
/* This one wasn't seen before */
|
||||
/* Decode the secondary IFP packet */
|
||||
ast_debug(3, "Recovering lost packet via secondary %d, len %d\n", seq_no - i, lengths[i - 1]);
|
||||
ast_debug(3, "Recovering lost packet via secondary %d, len %u\n", seq_no - i, lengths[i - 1]);
|
||||
s->f[ifp_no].frametype = AST_FRAME_MODEM;
|
||||
s->f[ifp_no].subclass.codec = AST_MODEM_T38;
|
||||
|
||||
@@ -1075,7 +1075,7 @@ int ast_udptl_write(struct ast_udptl *s, struct ast_frame *f)
|
||||
|
||||
if (len > s->far_max_ifp) {
|
||||
ast_log(LOG_WARNING,
|
||||
"UDPTL (%s): UDPTL asked to send %d bytes of IFP when far end only prepared to accept %d bytes; data loss will occur."
|
||||
"UDPTL (%s): UDPTL asked to send %u bytes of IFP when far end only prepared to accept %d bytes; data loss will occur."
|
||||
"You may need to override the T38FaxMaxDatagram value for this endpoint in the channel driver configuration.\n",
|
||||
LOG_TAG(s), len, s->far_max_ifp);
|
||||
len = s->far_max_ifp;
|
||||
@@ -1092,7 +1092,7 @@ int ast_udptl_write(struct ast_udptl *s, struct ast_frame *f)
|
||||
ast_log(LOG_NOTICE, "UDPTL (%s): Transmission error to %s: %s\n",
|
||||
LOG_TAG(s), ast_sockaddr_stringify(&s->them), strerror(errno));
|
||||
if (udptl_debug_test_addr(&s->them))
|
||||
ast_verb(1, "UDPTL (%s): packet to %s (seq %d, len %d)\n",
|
||||
ast_verb(1, "UDPTL (%s): packet to %s (seq %u, len %u)\n",
|
||||
LOG_TAG(s), ast_sockaddr_stringify(&s->them), seq, len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user