Commit 53c3ddd3 authored by f3nix's avatar f3nix

gcc 4.2.1 compatibility: change char * to const char *

parent c4f1a36a
......@@ -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;
......@@ -322,10 +322,10 @@ void CreateShapesSection( FILE* file, BOARD* pcb )
{
MODULE* module;
D_PAD* pad;
char* layer;
const char* layer;
int orient;
wxString pinname;
char* mirror = "0";
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 donne comme s'ils etaient cote composant.
* - leur orientation est donn�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 );
......
......@@ -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" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment