From 84060717c1cb959006bc9c2a2eb63a4b14fdad21 Mon Sep 17 00:00:00 2001 From: Duarte Silva Date: Fri, 15 May 2015 15:53:23 +0100 Subject: [PATCH] Removed unnecessary handling code. --- pafish/main.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/pafish/main.c b/pafish/main.c index c3e9d9a..ac23e85 100644 --- a/pafish/main.c +++ b/pafish/main.c @@ -312,19 +312,12 @@ int main(void) else print_not_traced(); printf("[*] Looking for a MAC address starting with 08:00:27 ... "); - switch (vbox_mac()) { - case TRUE: - write_log("VirtualBox traced using MAC address starting with 08:00:27"); - print_traced(); - write_trace("hi_virtualbox"); - break; - case FALSE: - print_not_traced(); - break; - case -1: - print_warning("NOT BUILT"); - break; + if (vbox_mac() == TRUE) { + write_log("VirtualBox traced using MAC address starting with 08:00:27"); + print_traced(); + write_trace("hi_virtualbox"); } + else print_not_traced(); printf("[*] Looking for pseudo devices ... "); if (vbox_devices(TRUE) == TRUE) {