tree-wide: Small fixes for various clang-tidy warnings
This commit is contained in:
committed by
Yu Watanabe
parent
2ba910ab06
commit
9a6a8f35eb
@@ -645,7 +645,7 @@ int safe_atod(const char *s, double *ret_d) {
|
||||
return -EINVAL;
|
||||
|
||||
if (ret_d)
|
||||
*ret_d = (double) d;
|
||||
*ret_d = d;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -710,7 +710,7 @@ int parse_ip_port(const char *s, uint16_t *ret) {
|
||||
if (l == 0)
|
||||
return -EINVAL;
|
||||
|
||||
*ret = (uint16_t) l;
|
||||
*ret = l;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user