Author: eadler
Date: Wed May 23 13:48:16 2018
New Revision: 334095
URL: https://svnweb.freebsd.org/changeset/base/334095

Log:
  devd: Move variable declaration to header
  
  Reminder by:  imp

Modified:
  head/sbin/devd/devd.cc
  head/sbin/devd/devd.h
  head/sbin/devd/token.l

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc      Wed May 23 13:10:57 2018        (r334094)
+++ head/sbin/devd/devd.cc      Wed May 23 13:48:16 2018        (r334095)
@@ -140,7 +140,6 @@ typedef struct client {
 } client_t;
 
 extern FILE *yyin;
-extern int lineno;
 
 static const char notify = '!';
 static const char nomatch = '?';

Modified: head/sbin/devd/devd.h
==============================================================================
--- head/sbin/devd/devd.h       Wed May 23 13:10:57 2018        (r334094)
+++ head/sbin/devd/devd.h       Wed May 23 13:48:16 2018        (r334095)
@@ -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"

Modified: head/sbin/devd/token.l
==============================================================================
--- head/sbin/devd/token.l      Wed May 23 13:10:57 2018        (r334094)
+++ head/sbin/devd/token.l      Wed May 23 13:48:16 2018        (r334095)
@@ -38,7 +38,6 @@
 #include "devd.h"
 #include "y.tab.h"
 
-extern int lineno;
 int lineno = 1;
 
 static void
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to