From e45b89dcfdd1eb10ed256a1c94e1b4c336ed2517 Mon Sep 17 00:00:00 2001 From: stefanf Date: Wed, 6 Apr 2005 17:42:24 +0000 Subject: Include gettytab.h before extern.h so that the declarations of struct gettyflags, gettynums and gettystrs are available. --- libexec/getty/chat.c | 1 + libexec/getty/extern.h | 3 --- libexec/getty/init.c | 2 +- libexec/getty/main.c | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'libexec') diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 8256bb1..bc5a963 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -39,6 +39,7 @@ static const char rcsid[] = #include #include +#include "gettytab.h" #include "extern.h" #define PAUSE_CH (unsigned char)'\xff' /* pause kludge */ diff --git a/libexec/getty/extern.h b/libexec/getty/extern.h index f8e8bda..04f3287 100644 --- a/libexec/getty/extern.h +++ b/libexec/getty/extern.h @@ -36,9 +36,6 @@ struct delayval; struct termios; -struct gettyflags; -struct gettynums; -struct gettystrs; extern char hostname[]; extern int hopcount; diff --git a/libexec/getty/init.c b/libexec/getty/init.c index c83a83e..b832bb2 100644 --- a/libexec/getty/init.c +++ b/libexec/getty/init.c @@ -45,8 +45,8 @@ static const char rcsid[] = * Melbourne getty. */ #include -#include "extern.h" #include "gettytab.h" +#include "extern.h" #include "pathnames.h" static char loginmsg[] = "login: "; diff --git a/libexec/getty/main.c b/libexec/getty/main.c index ceea009..ad53411 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -67,8 +67,8 @@ static const char rcsid[] = #include #include -#include "extern.h" #include "gettytab.h" +#include "extern.h" #include "pathnames.h" /* -- cgit v1.1