Remove unused client_config_t foreground variable.
This commit is contained in:
parent
c38fd2be9b
commit
4fdde404aa
@ -515,8 +515,6 @@ int arp_collision_timeout(struct client_state_t cs[static 1], long long nowts)
|
||||
ret = ARPR_FAIL;
|
||||
if (client_config.quit_after_lease)
|
||||
exit(EXIT_SUCCESS);
|
||||
if (!client_config.foreground)
|
||||
background();
|
||||
return ret;
|
||||
}
|
||||
long long rtts = garp.send_stats[ASEND_COLLISION_CHECK].ts +
|
||||
|
@ -92,7 +92,6 @@ struct client_config_t client_config = {
|
||||
.arp = "\0\0\0\0\0\0",
|
||||
.clientid_len = 0,
|
||||
.metric = 0,
|
||||
.foreground = true,
|
||||
};
|
||||
|
||||
void set_client_addr(const char v[static 1]) { cs.clientAddr = inet_addr(v); }
|
||||
@ -474,8 +473,7 @@ static void ndhc_main(void) {
|
||||
|
||||
cs.rfkillFd = rfkill_open(&client_config.enable_rfkill);
|
||||
|
||||
if (write_pid_enabled &&
|
||||
client_config.foreground && !client_config.background_if_no_lease)
|
||||
if (write_pid_enabled && !client_config.background_if_no_lease)
|
||||
write_pid(pidfile);
|
||||
|
||||
open_leasefile();
|
||||
|
@ -50,7 +50,6 @@ struct client_state_t {
|
||||
};
|
||||
|
||||
struct client_config_t {
|
||||
bool foreground; // Do not fork
|
||||
bool quit_after_lease; // Quit after obtaining lease
|
||||
bool abort_if_no_lease; // Abort if no lease
|
||||
bool background_if_no_lease; // Fork to background if no lease
|
||||
|
Loading…
Reference in New Issue
Block a user