From: Alexander Traud Date: Fri, 12 Jan 2018 10:03:38 +0000 (+0100) Subject: chan_ooh323: Avoid typecasting an int to unsigned short. X-Git-Tag: 15.3.0-rc1~100^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d304ec52ef786ede7da67ba8d4e4ea70e10a8b;p=thirdparty%2Fasterisk.git chan_ooh323: Avoid typecasting an int to unsigned short. clang 5.0 warned about this. ASTERISK-27577 Change-Id: I898fe4255023138a9e8b579fe4482fcf582f2b78 --- diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 1fa721cd32..8c4ff2c4a6 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -3215,7 +3215,7 @@ static char *handle_cli_ooh323_show_peer(struct ast_cli_entry *e, int cmd, struc } if (peer) { - sprintf(ip_port, "%s:%hu", peer->ip, peer->port); + sprintf(ip_port, "%s:%d", peer->ip, peer->port); ast_cli(a->fd, "%-15.15s%s\n", "Name: ", peer->name); ast_cli(a->fd, "%s:%s,%s\n", "FastStart/H.245 Tunneling", peer->faststart?"yes":"no", peer->h245tunneling?"yes":"no"); @@ -3306,7 +3306,7 @@ static char *handle_cli_ooh323_show_peers(struct ast_cli_entry *e, int cmd, stru peer = peerl.peers; while (peer) { ast_mutex_lock(&peer->lock); - snprintf(ip_port, sizeof(ip_port), "%s:%hu", peer->ip, peer->port); + snprintf(ip_port, sizeof(ip_port), "%s:%d", peer->ip, peer->port); ast_cli(a->fd, FORMAT, peer->name, peer->accountcode, ip_port,