Better type safety.

This commit is contained in:
steve 2004-09-05 21:19:51 +00:00
parent c10e572091
commit 5f38591676
1 changed files with 7 additions and 4 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: cadpli.c,v 1.5 2003/08/26 16:26:02 steve Exp $"
#ident "$Id: cadpli.c,v 1.6 2004/09/05 21:19:51 steve Exp $"
#endif
# include <vpi_user.h>
@ -37,7 +37,7 @@ static void thunker_register(void)
struct t_vpi_vlog_info vlog_info;
void*mod;
void*boot;
void*tf;
struct t_tfcell*tf;
int idx;
vpi_get_vlog_info(&vlog_info);
@ -53,7 +53,7 @@ static void thunker_register(void)
bp = strchr(cp, ':');
assert(bp);
module = malloc(bp-cp+1);
module = (char*)malloc(bp-cp+1);
strncpy(module, cp, bp-cp);
module[bp-cp] = 0;
@ -76,7 +76,7 @@ static void thunker_register(void)
free(module);
assert(boot);
tf = (*((funcvp)boot))();
tf = (struct t_tfcell*) (*((funcvp)boot))();
assert(tf);
veriusertfs_register_table(tf);
@ -91,6 +91,9 @@ void (*vlog_startup_routines[])() = {
/*
* $Log: cadpli.c,v $
* Revision 1.6 2004/09/05 21:19:51 steve
* Better type safety.
*
* Revision 1.5 2003/08/26 16:26:02 steve
* ifdef idents correctly.
*