tree-wide: use SYNTHETIC_ERRNO() where appropriate
This commit is contained in:
@@ -119,10 +119,8 @@ int ifname_mangle(const char *s) {
|
||||
}
|
||||
}
|
||||
|
||||
if (arg_ifindex > 0 && arg_ifindex != ifi) {
|
||||
log_error("Specified multiple different interfaces. Refusing.");
|
||||
return -EINVAL;
|
||||
}
|
||||
if (arg_ifindex > 0 && arg_ifindex != ifi)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Specified multiple different interfaces. Refusing.");
|
||||
|
||||
arg_ifindex = ifi;
|
||||
free_and_replace(arg_ifname, iface);
|
||||
|
||||
Reference in New Issue
Block a user