compiles fine
This commit is contained in:
parent
b517afbfad
commit
815c9db00d
12 changed files with 79 additions and 90 deletions
|
|
@ -28,14 +28,9 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: gsp_sym.c,v 1.10 2025/11/24 08:04:28 nia Exp $");
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <util.h>
|
||||
#include <stdlib.h>
|
||||
#include "gsp_ass.h"
|
||||
|
||||
#define NHASH 64 /* must be power of 2 */
|
||||
|
|
@ -62,7 +57,7 @@ lookup(char *id, bool makeit)
|
|||
break;
|
||||
if( !makeit )
|
||||
return NULL;
|
||||
ptr = emalloc(sizeof(struct symbol) + strlen(id));
|
||||
ptr = malloc(sizeof(struct symbol) + strlen(id));
|
||||
ptr->ndefn = 0;
|
||||
ptr->flags = 0;
|
||||
ptr->value = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue