Browse Source

drop some (char*) casts

rlar 14 years ago
parent
commit
e800751d3e
  1. 9
      ChangeLog
  2. 2
      src/xspice/cm/cm.c
  3. 2
      src/xspice/evt/evtsetup.c
  4. 4
      src/xspice/evt/evttermi.c
  5. 2
      src/xspice/mif/mifconvt.c
  6. 2
      src/xspice/mif/mifload.c
  7. 4
      src/xspice/mif/mifsetup.c

9
ChangeLog

@ -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 2012-02-06 Robert Larice
* src/include/ngspice/inpdefs.h , * src/include/ngspice/inpdefs.h ,
* src/spicelib/parser/inplkmod.c : * src/spicelib/parser/inplkmod.c :

2
src/xspice/cm/cm.c

@ -663,7 +663,7 @@ int cm_message_send(
here = g_mif_info.instance; here = g_mif_info.instance;
/* Print the name of the instance and the message */ /* 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); return(0);
} }

2
src/xspice/evt/evtsetup.c

@ -456,7 +456,7 @@ static int EVTsetup_jobs(
/* Fill in the pointers, etc. for this new job */ /* Fill in the pointers, etc. for this new job */
i = num_jobs - 1; 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->node_data[i] = data->node;
jobs->state_data[i] = data->state; jobs->state_data[i] = data->state;
jobs->msg_data[i] = data->msg; jobs->msg_data[i] = data->msg;

4
src/xspice/evt/evttermi.c

@ -443,8 +443,8 @@ static void EVTport_insert(
port->inst_index = inst_index; port->inst_index = inst_index;
port->node_index = node_index; port->node_index = node_index;
port->node_name = MIFcopy(node_name); 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; port->port_num = port_num;
/* Record the port index in the MIFinstance structure */ /* Record the port index in the MIFinstance structure */

2
src/xspice/mif/mifconvt.c

@ -126,7 +126,7 @@ int MIFconvTest(
if (fabs(value - last_value) > tol) { if (fabs(value - last_value) > tol) {
if(ckt->enh->conv_debug.report_conv_probs) { if(ckt->enh->conv_debug.report_conv_probs) {
ENHreport_conv_prob(ENH_ANALOG_INSTANCE, ENHreport_conv_prob(ENH_ANALOG_INSTANCE,
(char *) here->MIFname,
here->MIFname,
""); "");
} }
ckt->CKTnoncon++; ckt->CKTnoncon++;

2
src/xspice/mif/mifload.c

@ -361,7 +361,7 @@ MIFload(
/* report convergence problem if last call */ /* report convergence problem if last call */
if(ckt->enh->conv_debug.report_conv_probs) { if(ckt->enh->conv_debug.report_conv_probs) {
ENHreport_conv_prob(ENH_ANALOG_INSTANCE, ENHreport_conv_prob(ENH_ANALOG_INSTANCE,
(char *) here->MIFname, "");
here->MIFname, "");
} }
} }
} }

4
src/xspice/mif/mifsetup.c

@ -307,7 +307,7 @@ MIFsetup(
(type == MIF_RESISTANCE || type == MIF_DIFF_RESISTANCE) ) { (type == MIF_RESISTANCE || type == MIF_DIFF_RESISTANCE) ) {
/* first, make the current equation */ /* 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); sprintf(suffix, "branch_%d_%d", i, j);
error = CKTmkCur(ckt, &tmp, here->MIFname, suffix); error = CKTmkCur(ckt, &tmp, here->MIFname, suffix);
FREE(suffix); FREE(suffix);
@ -330,7 +330,7 @@ MIFsetup(
if(is_input && (type == MIF_CURRENT || type == MIF_DIFF_CURRENT)) { if(is_input && (type == MIF_CURRENT || type == MIF_DIFF_CURRENT)) {
/* first, make the current equation */ /* 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); sprintf(suffix, "ibranch_%d_%d", i, j);
error = CKTmkCur(ckt, &tmp, here->MIFname, suffix); error = CKTmkCur(ckt, &tmp, here->MIFname, suffix);
FREE(suffix); FREE(suffix);

Loading…
Cancel
Save