Check argument of ef_cadef(), ef_nelem(), ef_flags(), ef_mtime()
This removes any need for calling ef_check() outside of file.c. Remove its only occurence, from symval(), and give it internal linkage.
This commit is contained in:
parent
1492845c12
commit
50cfdcb5a7
3 changed files with 10 additions and 4 deletions
|
@ -671,8 +671,6 @@ symval(struct castr *ca, int i)
|
|||
{
|
||||
int type = ca->ca_table;
|
||||
|
||||
if (ef_check(type) < 0)
|
||||
return -1;
|
||||
if (ef_cadef(type) == symbol_ca)
|
||||
/* symbol table, value is in the table */
|
||||
return ((struct symbol *)ef_ptr(type, i))->value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue