Reformat the code using astyle.
[tinc] / src / invitation.c
index 500f243..411af2b 100644 (file)
@@ -1013,10 +1013,14 @@ ask_netname:
                                        char *command;
 #ifndef HAVE_MINGW
                                        const char *editor = getenv("VISUAL");
-                                       if (!editor)
+
+                                       if(!editor) {
                                                editor = getenv("EDITOR");
-                                       if (!editor)
+                                       }
+
+                                       if(!editor) {
                                                editor = "vi";
+                                       }
 
                                        xasprintf(&command, "\"%s\" \"%s\"", editor, filename);
 #else