use const markings on const strings to shutup gcc warnings

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1425 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 16 years ago
parent 32002ea873
commit 46509a4cf7

@ -8,6 +8,7 @@
types with printf().
* src/part/part.c (part_print): Use const markings with const strings.
* src/cmd/include.c (cmd_include_or_script_run): Likewise.
2009-01-19 Kolja Waschk <kawk>

@ -63,7 +63,7 @@ cmd_include_or_script_run( chain_t *chain, int is_include, char *params[] )
}
else
{
char *jtag_data_dir = jtag_get_data_dir();
const char *jtag_data_dir = jtag_get_data_dir();
path = malloc(len = strlen( jtag_data_dir ) + strlen( params[1] ) + 2);
if(path != NULL)
{

Loading…
Cancel
Save