1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Squelch conversion warnings with explicit casts

This commit is contained in:
Moritz Grimm 2016-04-22 15:44:01 +02:00
parent 9738668129
commit 9eff442169
2 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ cfg_set_server_port(const char *port_str, const char **errstrp)
return (-1);
}
port = strtonum(port_str, 1, UINT16_MAX, &errstr);
port = (unsigned int)strtonum(port_str, 1, UINT16_MAX, &errstr);
if (errstr) {
if (errstrp)
*errstrp = errstr;

View File

@ -141,7 +141,7 @@ struct cfg {
return (-1); \
} \
\
num = strtonum((s), 0, UINT_MAX, &errstr); \
num = (unsigned int)strtonum((s), 0, UINT_MAX, &errstr); \
if (errstr) { \
if ((e)) \
*(e) = errstr; \
@ -160,7 +160,7 @@ struct cfg {
return (-1); \
} \
\
num = strtonum((s), INT_MIN, INT_MAX, &errstr); \
num = (int)strtonum((s), INT_MIN, INT_MAX, &errstr); \
if (errstr) { \
if ((e)) \
*(e) = errstr; \