From 179bf1196df7f67e36eb43a648f7e95ebc264414 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Tue, 27 Aug 2002 11:59:13 +0000 Subject: [PATCH] Added missing 'const' qualifiers. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@124 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/jtag/register.h | 2 +- jtag/src/tap/register.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/jtag/register.h b/include/jtag/register.h index 13f2a743..29de1fdd 100644 --- a/include/jtag/register.h +++ b/include/jtag/register.h @@ -35,7 +35,7 @@ tap_register *register_alloc( int len ); tap_register *register_duplicate( const tap_register *tr ); void register_free( tap_register *tr ); tap_register *register_fill( tap_register *tr, int val ); -const char *register_get_string( tap_register *tr ); +const char *register_get_string( const tap_register *tr ); tap_register *register_init( tap_register *tr, const char *value ); int register_compare( const tap_register *tr, const tap_register *tr2 ); int register_match( const tap_register *tr, const char *expr ); diff --git a/jtag/src/tap/register.c b/jtag/src/tap/register.c index 3896a0fe..eaea4879 100644 --- a/jtag/src/tap/register.c +++ b/jtag/src/tap/register.c @@ -87,7 +87,7 @@ register_fill( tap_register *tr, int val ) } const char * -register_get_string( tap_register *tr ) +register_get_string( const tap_register *tr ) { int i; @@ -149,7 +149,7 @@ int register_match( const tap_register *tr, const char *expr ) { int i; - char *s; + const char *s; if (!tr || !expr || (tr->len != strlen( expr ))) return 0;