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.
This commit is contained in:
parent
c23c34bcba
commit
54194afb99
|
@ -201,16 +201,16 @@ int main(int argc, char *argv[]) {
|
||||||
return EXIT_FAILURE;
|
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))
|
if (isempty(tty) || tty_is_vc(tty))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (verify_tty(tty) < 0)
|
if (verify_tty(tty) < 0)
|
||||||
continue;
|
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)
|
if (add_serial_getty(tty) < 0)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue