summaryrefslogtreecommitdiff
path: root/channels/sip
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-05-09 22:49:26 +0000
committerKinsey Moore <kmoore@digium.com>2014-05-09 22:49:26 +0000
commitabd3e4040bd76058d0148884879858894258fb9f (patch)
treec5695a0880c4928731b1aa864f862c6cffa57428 /channels/sip
parentf3b55da1b855b12a59f84fd9bf6768eb101cd910 (diff)
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. ........ Merged revisions 413586 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 413587 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 413588 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip')
-rw-r--r--channels/sip/config_parser.c2
-rw-r--r--channels/sip/include/sip.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/sip/config_parser.c b/channels/sip/config_parser.c
index 6fc83248d..27ded99b8 100644
--- a/channels/sip/config_parser.c
+++ b/channels/sip/config_parser.c
@@ -684,7 +684,7 @@ int sip_parse_host(char *line, int lineno, char **hostname, int *portnum, enum a
}
if (port) {
- if (!sscanf(port, "%5u", portnum)) {
+ if (!sscanf(port, "%5d", portnum)) {
if (lineno) {
ast_log(LOG_NOTICE, "'%s' is not a valid port number on line %d of sip.conf. using default.\n", port, lineno);
} else {
diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h
index 2659b91f9..e2ab6e19a 100644
--- a/channels/sip/include/sip.h
+++ b/channels/sip/include/sip.h
@@ -1304,7 +1304,7 @@ struct sip_peer {
int ringing; /*!< Number of calls ringing */
int onhold; /*!< Peer has someone on hold */
int call_limit; /*!< Limit of concurrent calls */
- int t38_maxdatagram; /*!< T.38 FaxMaxDatagram override */
+ unsigned int t38_maxdatagram; /*!< T.38 FaxMaxDatagram override */
int busy_level; /*!< Level of active channels where we signal busy */
int maxforwards; /*!< SIP Loop prevention */
enum transfermodes allowtransfer; /*! SIP Refer restriction scheme */