]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: move FIRST_SPEED to tty.c
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 09:26:10 +0000 (11:26 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:57 +0000 (13:14 +0200)
FIRST_SPEED is only used in tty.c, no need to expose it in the
shared header.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.h
agetty-cmd/tty.c

index ec9257cca434a6c4be57fbe49fea6ae89567da27..08d03a49516e81e7c4ed008eaee08497645f2b4d 100644 (file)
@@ -119,8 +119,6 @@ enum {
        CLOCAL_MODE_NEVER
 };
 
-#define        FIRST_SPEED     0
-
 #ifdef DEBUGGING
 # define debug(s) do { fprintf(dbf,s); fflush(dbf); } while (0)
 extern FILE *dbf;
index 9826c2bb7429f1a27144c84120e6061f8a69244a..b9383f5fd2e04bfff724b855479ccaf77e27802e 100644 (file)
@@ -41,6 +41,8 @@ struct Speedtab {
        speed_t code;
 };
 
+#define        FIRST_SPEED     0
+
 static const struct Speedtab speedtab[] = {
        {50, B50},
        {75, B75},