Skip to contentSkip to conversation

vl.c: fix some alignment issues

PATCH Superseded Marcel Apfelbaum 2 participants 3 messages Jan 11, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vl.c: fix some alignment issues

The main's switch had a few cases misaligned.

---
 vl.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
vl.c +6 -6
index 7786b2f..adfdbfd 100644
@@ -3147,9 +3147,9 @@ int main(int argc, char **argv, char **envp)
             case QEMU_OPTION_S:
                 autostart = 0;
                 break;
-	    case QEMU_OPTION_k:
-		keyboard_layout = optarg;
-		break;
+            case QEMU_OPTION_k:
+                keyboard_layout = optarg;
+                break;
             case QEMU_OPTION_localtime:
                 rtc_utc = 0;
                 break;
@@ -3357,9 +3357,9 @@ int main(int argc, char **argv, char **envp)
             case QEMU_OPTION_debugcon:
                 add_device_config(DEV_DEBUGCON, optarg);
                 break;
-	    case QEMU_OPTION_loadvm:
-		loadvm = optarg;
-		break;
+            case QEMU_OPTION_loadvm:
+                loadvm = optarg;
+                break;
             case QEMU_OPTION_full_screen:
                 full_screen = 1;
                 break;
Signature · 1 line
2.1.0
Reviewed-by on v1 1/1
#1 lore raw

Am 11.01.2015 um 10:37 schrieb Marcel Apfelbaum:

Quoted 7 lines

The main's switch had a few cases misaligned.

---
  vl.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

The misalignment was caused by tabs which were used instead of spaces.

A short look on vl.c shows lots of more lines with tabs (also in other switch statements), so this patch could be extended to fix more lines.

Stefan

#2 lore raw
Quoted 9 lines · Stefan Weil

Am 11.01.2015 um 10:37 schrieb Marcel Apfelbaum:

Quoted 7 lines

The main's switch had a few cases misaligned.

---
  vl.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)
Quoted 6 lines

The misalignment was caused by tabs which were used instead of spaces.

A short look on vl.c shows lots of more lines with tabs (also in other switch statements), so this patch could be extended to fix more lines.

This is what I saw while fixing other stuff. :)
I'll try to hunt others and send another version.

Thanks,
Marcel

Quoted 3 lines

Stefan