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:
parent
9738668129
commit
9eff442169
@ -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;
|
||||
|
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user