diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-01-12 11:24:13 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-01-12 11:24:13 -0600 |
commit | a01c37115ca26ebf78630875fd1e12f0fdca4b4f (patch) | |
tree | a8b62277184dbb842150d4b5e99ea8ffa564e221 | |
parent | 4573aa1270b26637b78ce609ff4124ddefd83f59 (diff) | |
parent | 797747afa7cf39c10eee19a536bf3f8724381b48 (diff) |
Merge "chan_ooh323: Avoid typecasting an int to unsigned short."
-rw-r--r-- | addons/chan_ooh323.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index 1fa721cd3..8c4ff2c4a 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, |