mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
wirelessctrl: Remove some unused code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -39,7 +39,6 @@ void exithandler(void) {
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
char green_dev[STRING_SIZE] = "";
|
||||
char buffer[STRING_SIZE];
|
||||
char *index, *ipaddress, *macaddress, *enabled;
|
||||
struct keyvalue *kv = NULL;
|
||||
@@ -68,14 +67,6 @@ int main(void) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* Get the GREEN interface details */
|
||||
if (findkey(kv, "GREEN_DEV", green_dev) > 0) {
|
||||
if (!VALID_DEVICE(green_dev)) {
|
||||
fprintf(stderr, "Bad GREEN_DEV: %s\n", green_dev);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Get the BLUE interface details */
|
||||
if (findkey(kv, "BLUE_DEV", blue_dev) > 0) {
|
||||
if ((strlen(blue_dev) > 0) && !VALID_DEVICE(blue_dev)) {
|
||||
|
||||
Reference in New Issue
Block a user