aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>2017-08-07 17:23:41 +0100
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>2017-08-07 17:23:41 +0100
commit54194afb99541cd4fc1bd005f7cd2b8bf1470a1b (patch)
treecb7741d5e83ff60887063e2a18df43b7c1c878a1 /src/getty-generator
parentbuild-sys: Fix Makefile wrapper for install target (#6548) (diff)
downloadsystemd-54194afb99541cd4fc1bd005f7cd2b8bf1470a1b.tar.gz
systemd-54194afb99541cd4fc1bd005f7cd2b8bf1470a1b.tar.bz2
systemd-54194afb99541cd4fc1bd005f7cd2b8bf1470a1b.zip
getty-generator: shift relevant comment to above tty_is_vc()
Comments typically go immediately above the code to implement the described behaviour. Putting it below confused me for a moment.
Diffstat (limited to 'src/getty-generator')
-rw-r--r--src/getty-generator/getty-generator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c
index b15c76b5b..a143b5413 100644
--- a/src/getty-generator/getty-generator.c
+++ b/src/getty-generator/getty-generator.c
@@ -201,16 +201,16 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
+ /* We assume that gettys on virtual terminals are
+ * started via manual configuration and do this magic
+ * only for non-VC terminals. */
+
if (isempty(tty) || tty_is_vc(tty))
continue;
if (verify_tty(tty) < 0)
continue;
- /* We assume that gettys on virtual terminals are
- * started via manual configuration and do this magic
- * only for non-VC terminals. */
-
if (add_serial_getty(tty) < 0)
return EXIT_FAILURE;
}