drop some (char*) casts
This commit is contained in:
parent
a716572233
commit
e800751d3e
|
|
@ -1,3 +1,12 @@
|
|||
2012-02-06 Robert Larice
|
||||
* src/xspice/cm/cm.c ,
|
||||
* src/xspice/evt/evtsetup.c ,
|
||||
* src/xspice/evt/evttermi.c ,
|
||||
* src/xspice/mif/mifconvt.c ,
|
||||
* src/xspice/mif/mifload.c ,
|
||||
* src/xspice/mif/mifsetup.c :
|
||||
drop some (char*) casts
|
||||
|
||||
2012-02-06 Robert Larice
|
||||
* src/include/ngspice/inpdefs.h ,
|
||||
* src/spicelib/parser/inplkmod.c :
|
||||
|
|
|
|||
|
|
@ -663,7 +663,7 @@ int cm_message_send(
|
|||
here = g_mif_info.instance;
|
||||
|
||||
/* Print the name of the instance and the message */
|
||||
printf("\nInstance: %s Message: %s\n", (char *) here->MIFname, msg);
|
||||
printf("\nInstance: %s Message: %s\n", here->MIFname, msg);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -456,7 +456,7 @@ static int EVTsetup_jobs(
|
|||
|
||||
/* Fill in the pointers, etc. for this new job */
|
||||
i = num_jobs - 1;
|
||||
jobs->job_name[i] = MIFcopy((char *) ckt->CKTcurJob->JOBname);
|
||||
jobs->job_name[i] = MIFcopy(ckt->CKTcurJob->JOBname);
|
||||
jobs->node_data[i] = data->node;
|
||||
jobs->state_data[i] = data->state;
|
||||
jobs->msg_data[i] = data->msg;
|
||||
|
|
|
|||
|
|
@ -443,8 +443,8 @@ static void EVTport_insert(
|
|||
port->inst_index = inst_index;
|
||||
port->node_index = node_index;
|
||||
port->node_name = MIFcopy(node_name);
|
||||
port->inst_name = MIFcopy((char *) fast->MIFname);
|
||||
port->conn_name = MIFcopy((char *) fast->conn[conn_num]->name);
|
||||
port->inst_name = MIFcopy(fast->MIFname);
|
||||
port->conn_name = MIFcopy(fast->conn[conn_num]->name);
|
||||
port->port_num = port_num;
|
||||
|
||||
/* Record the port index in the MIFinstance structure */
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ int MIFconvTest(
|
|||
if (fabs(value - last_value) > tol) {
|
||||
if(ckt->enh->conv_debug.report_conv_probs) {
|
||||
ENHreport_conv_prob(ENH_ANALOG_INSTANCE,
|
||||
(char *) here->MIFname,
|
||||
here->MIFname,
|
||||
"");
|
||||
}
|
||||
ckt->CKTnoncon++;
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ MIFload(
|
|||
/* report convergence problem if last call */
|
||||
if(ckt->enh->conv_debug.report_conv_probs) {
|
||||
ENHreport_conv_prob(ENH_ANALOG_INSTANCE,
|
||||
(char *) here->MIFname, "");
|
||||
here->MIFname, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ MIFsetup(
|
|||
(type == MIF_RESISTANCE || type == MIF_DIFF_RESISTANCE) ) {
|
||||
|
||||
/* first, make the current equation */
|
||||
suffix = TMALLOC(char, strlen((char *) here->MIFname) + 100);
|
||||
suffix = TMALLOC(char, strlen(here->MIFname) + 100);
|
||||
sprintf(suffix, "branch_%d_%d", i, j);
|
||||
error = CKTmkCur(ckt, &tmp, here->MIFname, suffix);
|
||||
FREE(suffix);
|
||||
|
|
@ -330,7 +330,7 @@ MIFsetup(
|
|||
if(is_input && (type == MIF_CURRENT || type == MIF_DIFF_CURRENT)) {
|
||||
|
||||
/* first, make the current equation */
|
||||
suffix = TMALLOC(char, strlen((char *) here->MIFname) + 100);
|
||||
suffix = TMALLOC(char, strlen(here->MIFname) + 100);
|
||||
sprintf(suffix, "ibranch_%d_%d", i, j);
|
||||
error = CKTmkCur(ckt, &tmp, here->MIFname, suffix);
|
||||
FREE(suffix);
|
||||
|
|
|
|||
Loading…
Reference in New Issue