Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2018 13:48:17 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334095 - head/sbin/devd
Message-ID:  <201805231348.w4NDmHw3050524@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805231348.w4NDmHw3050524>