dhcpd: fix String -> &str type mismatch in dhcp() call

The dhcp() function takes iface: &str but main() was passing
an owned String. Add & to coerce to &str. Fixes E0308
'mismatched types' during canonical build.
This commit is contained in:
Red Bear OS
2026-07-26 20:53:45 +09:00
parent 44cd0f8b51
commit 24ee3bb140
+1 -1
View File
@@ -395,7 +395,7 @@ fn main() {
std::thread::sleep(std::time::Duration::from_millis(250));
}
if let Err(err) = dhcp(iface, verbose) {
if let Err(err) = dhcp(&iface, verbose) {
eprintln!("dhcpd: {err}");
process::exit(1);
}