compiles fine

This commit is contained in:
Nishi 2026-08-11 23:37:56 +09:00
commit 815c9db00d
12 changed files with 79 additions and 90 deletions

View file

@ -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;