Use system header for malloc() rather than local declaration.

This commit is contained in:
Eric Smith 2006-04-10 05:01:31 +00:00
parent 5f72d0b1fe
commit 4e6c6df632
1 changed files with 3 additions and 3 deletions

6
lex.l
View File

@ -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 <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@ -24,10 +24,10 @@
%{
#undef ECHO
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#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");