(add_to_error_table): new function, from Derrick J Brashear
<shadow@dementia.org> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9924 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -153,3 +153,17 @@ error_table_name(int num)
|
||||
*p = '\0';
|
||||
return(buf);
|
||||
}
|
||||
|
||||
void
|
||||
add_to_error_table(struct et_list *new_table)
|
||||
{
|
||||
struct et_list *et;
|
||||
|
||||
for (et = _et_list; et; et = et->next) {
|
||||
if (et->table->base == new_table->table->base)
|
||||
return;
|
||||
}
|
||||
|
||||
new_table->next = _et_list;
|
||||
_et_list = new_table;
|
||||
}
|
||||
|
Reference in New Issue
Block a user