Propagate returns through ifchange_(deconfig|bind).

While doing so remove unnecessary argument null checks and
make sure not to alter the stored interface state if the
ifch requests failed.
This commit is contained in:
Nicholas J. Kain
2015-02-14 19:10:23 -05:00
parent 44175bd77c
commit 170f87c0e7
3 changed files with 21 additions and 19 deletions

View File

@ -74,7 +74,6 @@
#include "rfkill.h"
struct client_state_t cs = {
.ifDeconfig = 0,
.init = 1,
.epollFd = -1,
.signalFd = -1,