From 46509a4cf7ce0afc419bc82ced53211cf25471eb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Jan 2009 21:15:47 +0000 Subject: [PATCH] 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 --- jtag/ChangeLog | 1 + jtag/src/cmd/include.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 4d13d494..f7d4c768 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -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 diff --git a/jtag/src/cmd/include.c b/jtag/src/cmd/include.c index 4444f87b..704cd430 100644 --- a/jtag/src/cmd/include.c +++ b/jtag/src/cmd/include.c @@ -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) {