Skip to content

Commit 54194af

Browse files
committed
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.
1 parent c23c34b commit 54194af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/getty-generator/getty-generator.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,16 @@ int main(int argc, char *argv[]) {
201201
return EXIT_FAILURE;
202202
}
203203

204+
/* We assume that gettys on virtual terminals are
205+
* started via manual configuration and do this magic
206+
* only for non-VC terminals. */
207+
204208
if (isempty(tty) || tty_is_vc(tty))
205209
continue;
206210

207211
if (verify_tty(tty) < 0)
208212
continue;
209213

210-
/* We assume that gettys on virtual terminals are
211-
* started via manual configuration and do this magic
212-
* only for non-VC terminals. */
213-
214214
if (add_serial_getty(tty) < 0)
215215
return EXIT_FAILURE;
216216
}

0 commit comments

Comments
 (0)