diff --git a/src/frontend/shyu.c b/src/frontend/shyu.c index d9ca34448..1afe5b965 100644 --- a/src/frontend/shyu.c +++ b/src/frontend/shyu.c @@ -53,7 +53,7 @@ if_sens_run(CKTcircuit *ckt, wordlist *args, INPtables *tab) deck.linenum_orig = 0; deck.line = buf; - current = (struct card *) &deck; + current = &deck; line = current->line; INPgetTok(&line, &token, 1); diff --git a/src/frontend/spiceif.c b/src/frontend/spiceif.c index d0194d9a5..682f2f55e 100644 --- a/src/frontend/spiceif.c +++ b/src/frontend/spiceif.c @@ -160,16 +160,16 @@ if_inpdeck(struct card *deck, INPtables **tab) /* reset the model table, will be filled in anew in INPpas1() */ modtab = NULL; - INPpas1(ckt, (struct card *) deck->nextcard, *tab); + INPpas1(ckt, deck->nextcard, *tab); /* store the new model table in the current circuit */ ft_curckt->ci_modtab = modtab; - INPpas2(ckt, (struct card *) deck->nextcard, *tab, ft_curckt->ci_defTask); + INPpas2(ckt, deck->nextcard, *tab, ft_curckt->ci_defTask); /* INPpas2 has been modified to ignore .NODESET and .IC * cards. These are left till INPpas3 so that we can check for * nodeset/ic of non-existant nodes. */ - INPpas3(ckt, (struct card *) deck->nextcard, + INPpas3(ckt, deck->nextcard, *tab, ft_curckt->ci_defTask, ft_sim->nodeParms, ft_sim->numNodeParms); @@ -300,7 +300,7 @@ if_run(CKTcircuit *ckt, char *what, wordlist *args, INPtables *tab) /*CDHW ci_curTask and ci_specTask point to the interactive task AAA CDHW*/ - INPpas2(ckt, (struct card *) &deck, tab, ft_curckt->ci_specTask); + INPpas2(ckt, &deck, tab, ft_curckt->ci_specTask); if (deck.error) { fprintf(cp_err, "Warning: %s\n", deck.error);