mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -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);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
port = strtonum(port_str, 1, UINT16_MAX, &errstr);
|
port = (unsigned int)strtonum(port_str, 1, UINT16_MAX, &errstr);
|
||||||
if (errstr) {
|
if (errstr) {
|
||||||
if (errstrp)
|
if (errstrp)
|
||||||
*errstrp = errstr;
|
*errstrp = errstr;
|
||||||
|
@ -141,7 +141,7 @@ struct cfg {
|
|||||||
return (-1); \
|
return (-1); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
num = strtonum((s), 0, UINT_MAX, &errstr); \
|
num = (unsigned int)strtonum((s), 0, UINT_MAX, &errstr); \
|
||||||
if (errstr) { \
|
if (errstr) { \
|
||||||
if ((e)) \
|
if ((e)) \
|
||||||
*(e) = errstr; \
|
*(e) = errstr; \
|
||||||
@ -160,7 +160,7 @@ struct cfg {
|
|||||||
return (-1); \
|
return (-1); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
num = strtonum((s), INT_MIN, INT_MAX, &errstr); \
|
num = (int)strtonum((s), INT_MIN, INT_MAX, &errstr); \
|
||||||
if (errstr) { \
|
if (errstr) { \
|
||||||
if ((e)) \
|
if ((e)) \
|
||||||
*(e) = errstr; \
|
*(e) = errstr; \
|
||||||
|
Loading…
Reference in New Issue
Block a user