Fix printf format modifier to build properly with CLANG.
src/htsp_server.c:485:55: error: format specifies type 'short' but the argument has type 'int' [-Werror,-Wformat] p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%hd%s", ~~^ %d
This commit is contained in:
parent
d137cc0073
commit
138e73eb26
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
|
|||
tcp_get_ip_str((struct sockaddr*)&addr, buf, 50);
|
||||
strcpy(url, "http://");
|
||||
p = strlen(url);
|
||||
p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%hd%s",
|
||||
p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%d%s",
|
||||
(addr.ss_family == AF_INET6)?"[":"",
|
||||
buf,
|
||||
(addr.ss_family == AF_INET6)?"]":"",
|
||||
|
|
Loading…
Add table
Reference in a new issue