From: Karel Zak Date: Thu, 14 May 2026 09:26:10 +0000 (+0200) Subject: agetty: move FIRST_SPEED to tty.c X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=41628df79e80470bb5cee504538dbcaa57502bca;p=thirdparty%2Futil-linux.git agetty: move FIRST_SPEED to tty.c FIRST_SPEED is only used in tty.c, no need to expose it in the shared header. Signed-off-by: Karel Zak --- diff --git a/agetty-cmd/agetty.h b/agetty-cmd/agetty.h index ec9257cca..08d03a495 100644 --- a/agetty-cmd/agetty.h +++ b/agetty-cmd/agetty.h @@ -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; diff --git a/agetty-cmd/tty.c b/agetty-cmd/tty.c index 9826c2bb7..b9383f5fd 100644 --- a/agetty-cmd/tty.c +++ b/agetty-cmd/tty.c @@ -41,6 +41,8 @@ struct Speedtab { speed_t code; }; +#define FIRST_SPEED 0 + static const struct Speedtab speedtab[] = { {50, B50}, {75, B75},