From 32002ea873b3dd5e6f7af7c7076cd971105bf136 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Jan 2009 21:11:51 +0000 Subject: [PATCH] use const markings on const strings to shutup gcc warnings git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1424 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 2 ++ jtag/src/part/part.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index bbbaa6a7..4d13d494 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -7,6 +7,8 @@ * src/tap/detect.c (detect_parts): Use the PRIX64 format string for 64bit types with printf(). + * src/part/part.c (part_print): Use const markings with const strings. + 2009-01-19 Kolja Waschk * doc/UrJTAG.txt, diff --git a/jtag/src/part/part.c b/jtag/src/part/part.c index dfe065df..ab7b5cba 100644 --- a/jtag/src/part/part.c +++ b/jtag/src/part/part.c @@ -235,8 +235,8 @@ part_get_signal( part_t *p, signal_t *s ) void part_print( part_t *p ) { - char *instruction = NULL; - char *dr = NULL; + const char *instruction = NULL; + const char *dr = NULL; char format[100]; if (!p)