From f405a1bea1568d4947ba9df308d028b6605d6cd2 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Wed, 23 May 2018 13:48:16 +0000 Subject: [PATCH] devd: Move variable declaration to header Reminder by: imp --- sbin/devd/devd.cc | 1 - sbin/devd/devd.h | 1 + sbin/devd/token.l | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 538910664cf..f57f41eaa7e 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 ca78ec0feae..ca2903ce385 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 28d3aee335e..2221dcf05f7 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