diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 538910664cf0..f57f41eaa7ea 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -140,7 +140,6 @@ typedef struct client { } client_t; extern FILE *yyin; -extern int lineno; static const char notify = '!'; static const char nomatch = '?'; diff --git a/sbin/devd/devd.h b/sbin/devd/devd.h index ca78ec0feaea..ca2903ce3857 100644 --- a/sbin/devd/devd.h +++ b/sbin/devd/devd.h @@ -52,6 +52,7 @@ void set_variable(const char *, const char *); void yyerror(const char *s); int yylex(void); int yyparse(void); +extern int lineno; __END_DECLS #define PATH_DEVCTL "/dev/devctl" diff --git a/sbin/devd/token.l b/sbin/devd/token.l index 28d3aee335eb..2221dcf05f7f 100644 --- a/sbin/devd/token.l +++ b/sbin/devd/token.l @@ -38,7 +38,6 @@ #include "devd.h" #include "y.tab.h" -extern int lineno; int lineno = 1; static void