drop useless cast of a copy() return value

This commit is contained in:
rlar 2010-06-27 17:57:30 +00:00
parent a120a5d049
commit b1151b4934
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2010-06-27 Robert Larice
* src/xspice/enh/enhtrans.c:
drop useless cast of a copy() return value
2010-06-23 Holger Vogt
* numparam.h: short replaced by int

View File

@ -319,8 +319,8 @@ static char *two2three_translate(
printf("ERROR in two2three_translate -- Argument to poly() is not an integer\n");
printf("ERROR while parsing: %s\n", orig_card);
errmsg = copy("ERROR in two2three_translate -- Argument to poly() is not an integer\n");
*inst_card = (void *)copy(" * ERROR Argument to poly() is not an integer");
*mod_card = (void *)copy(" * ERROR Argument to poly() is not an integer");
*inst_card = copy(" * ERROR Argument to poly() is not an integer");
*mod_card = copy(" * ERROR Argument to poly() is not an integer");
return errmsg;
}
@ -354,8 +354,8 @@ static char *two2three_translate(
printf("ERROR - Number of connections differs from poly dimension\n");
printf("ERROR while parsing: %s\n", orig_card);
errmsg = copy("ERROR in two2three_translate -- Argument to poly() is not an integer\n");
*inst_card = (void *)copy("* ERROR - Number of connections differs from poly dimension\n");
*mod_card = (void *)copy(" * ERROR - Number of connections differs from poly dimension\n");
*inst_card = copy("* ERROR - Number of connections differs from poly dimension\n");
*mod_card = copy(" * ERROR - Number of connections differs from poly dimension\n");
return(errmsg);
}
/* Split card into name, output connections, input connections, */