summaryrefslogtreecommitdiffstats
path: root/bin/sh/arith_lex.l
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-04-25 21:13:34 +0000
committerimp <imp@FreeBSD.org>1999-04-25 21:13:34 +0000
commit321c551969cc862a859c9e79c8404af90c94e81d (patch)
tree5ede02d61e978d083db7e7833d1560584b758dc1 /bin/sh/arith_lex.l
parent4be4456eab17cc243bba5d62ce59ba675507482b (diff)
downloadFreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.zip
FreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.tar.gz
First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
Diffstat (limited to 'bin/sh/arith_lex.l')
-rw-r--r--bin/sh/arith_lex.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/arith_lex.l b/bin/sh/arith_lex.l
index b5ca746..ef29c12 100644
--- a/bin/sh/arith_lex.l
+++ b/bin/sh/arith_lex.l
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: arith_lex.l,v 1.11 1998/08/24 10:20:36 cracauer Exp $
+ * $Id: arith_lex.l,v 1.12 1998/08/25 09:33:34 cracauer Exp $
*/
#ifndef lint
@@ -42,14 +42,14 @@
static char sccsid[] = "@(#)arith_lex.l 8.3 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: arith_lex.l,v 1.12 1998/08/25 09:33:34 cracauer Exp $";
#endif /* not lint */
#include <unistd.h>
#include "y.tab.h"
#include "error.h"
-extern yylval;
+extern int yylval;
extern char *arith_buf, *arith_startbuf;
#undef YY_INPUT
#define YY_INPUT(buf,result,max) \
OpenPOWER on IntegriCloud