about summary refs log tree commit diff
path: root/examples/qemu_persistent_hook/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qemu_persistent_hook/test.c')
-rw-r--r--examples/qemu_persistent_hook/test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/qemu_persistent_hook/test.c b/examples/qemu_persistent_hook/test.c
index 079d2be4..83001545 100644
--- a/examples/qemu_persistent_hook/test.c
+++ b/examples/qemu_persistent_hook/test.c
@@ -6,16 +6,15 @@ int target_func(char *buf, int size) {
   switch (buf[0]) {
 
     case 1:
-      if (buf[1] == '\x44') {
-        puts("a");
-      }
+      if (buf[1] == '\x44') { puts("a"); }
       break;
     case 0xff:
       if (buf[2] == '\xff') {
-        if (buf[1] == '\x44') {
-          puts("b");
-        }
+
+        if (buf[1] == '\x44') { puts("b"); }
+
       }
+
       break;
     default: break;
 
@@ -32,3 +31,4 @@ int main() {
   target_func(data, 1024);
 
 }
+