From 4e6c6df632435d33a7dc2082bb2f6a450a028f26 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Mon, 10 Apr 2006 05:01:31 +0000 Subject: [PATCH] Use system header for malloc() rather than local declaration. --- lex.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lex.l b/lex.l index b720896..5858998 100644 --- a/lex.l +++ b/lex.l @@ -1,7 +1,7 @@ /* * dis6502 by Robert Bond, Udi Finkelstein, and Eric Smith * - * $Id: lex.l,v 1.6 2003/09/16 12:00:00 eric Exp $ + * $Id$ * Copyright 2001-2003 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -24,10 +24,10 @@ %{ #undef ECHO #include +#include #include #include "dis.h" int lineno = 0; -char *strcpy(); %} %option nounput @@ -91,7 +91,7 @@ char * emalloc(n) unsigned n; { - char *ptr, *malloc(); + char *ptr; if ((ptr = malloc(n)) == (char *) 0) { (void) fprintf(stderr,"out of core");