From: keie Date: Mon, 21 Jan 1985 14:23:49 +0000 (+0000) Subject: 1 - Added comment to indicate awareness of lint complaints. X-Git-Tag: release-5-5~5748 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=dbb0d46ac2c6b131c79a941364e28e59a4de55ba;p=ack.git 1 - Added comment to indicate awareness of lint complaints. 2 - Added/Removed some casts used with core allocation/deallocation. --- diff --git a/lang/basic/src.old/symbols.c b/lang/basic/src.old/symbols.c index 5bd45e078..f20374de8 100644 --- a/lang/basic/src.old/symbols.c +++ b/lang/basic/src.old/symbols.c @@ -41,10 +41,10 @@ char *str; s= s->nextsym; } /* not found, create an emty slot */ - s= (Symbol *) salloc(sizeof(Symbol)); + /*NOSTRICT*/ s= (Symbol *) salloc(sizeof(Symbol)); s->symtype= DEFAULTTYPE; s->nextsym= firstsym; - s->symname= (char *) salloc(strlen(str)+1); + s->symname= (char *) salloc((unsigned)(strlen(str)+1)); strcpy(s->symname,str); firstsym= s; if(debug) printf("%s allocated\n",str); @@ -214,7 +214,7 @@ int type; while(s) { firstsym = s->nextsym; - free(s); + /*NOSTRICT*/ free((char *)s); s= firstsym; } firstsym= alternate;