gcc 4.2.1 compatibility: change char * to const char *

This commit is contained in:
f3nix 2007-11-08 10:00:38 +00:00
parent c4f1a36a8a
commit 53c3ddd363
2 changed files with 11 additions and 11 deletions

View File

@ -184,7 +184,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
*/
{
D_PAD* pad, ** padlist, ** pad_list_base;
char* pad_type;
const char* pad_type;
int memsize, ii, dx, dy;
D_PAD* old_pad = NULL;
int pad_name_number;
@ -320,12 +320,12 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
* $ENDSHAPES
*/
{
MODULE* module;
D_PAD* pad;
char* layer;
int orient;
wxString pinname;
char* mirror = "0";
MODULE* module;
D_PAD* pad;
const char* layer;
int orient;
wxString pinname;
const char* mirror = "0";
fputs( "$SHAPES\n", file );
@ -378,13 +378,13 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
* Composants cote CUIVRE:
* Les formes sont donnees avec l'option "FLIP", c.a.d.:
* - ils sont decrits en vue normale (comme s'ils etaient sur cote COMPOSANT)
* - leur orientation est donnée comme s'ils etaient cote composant.
* - leur orientation est donn<EFBFBD>e comme s'ils etaient cote composant.
*/
{
MODULE* module = pcb->m_Modules;
TEXTE_MODULE* PtTexte;
char* mirror;
char* flip;
const char* mirror;
const char* flip;
int ii;
fputs( "$COMPONENTS\n", file );

View File

@ -356,7 +356,7 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event )
layer = 1;
if( pad->m_Masque_Layer & CMP_LAYER )
layer |= 2;
char* layer_name[4] = { "??? ", "copper", "component", "all" };
const char* layer_name[4] = { "??? ", "copper", "component", "all" };
sprintf( Line, "Layer %s\n", layer_name[layer] );
fputs( Line, rptfile );
fprintf( rptfile, "$EndPAD\n" );