From 3d899184a8f3b7a614fb1e0c62ab071fe5f313ed Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 28 Sep 2010 04:02:21 +0000 Subject: [PATCH] urj_bus_generic_attach_sig: Constify signal id name git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1858 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 3 +++ urjtag/src/bus/generic_bus.c | 2 +- urjtag/src/bus/generic_bus.h | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index a6e951eb..d211b101 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -44,6 +44,9 @@ * data/analog/bf548/bf548: Add pin aliases for ADDR4..ADDR24 to match style of all other Blackfin parts. + * src/bus/generic_bus.c, src/bus/generic_bus.h (urj_bus_generic_attach_sig): + Constify signal id name. + 2010-08-30 Mike Frysinger * configure.ac: Clean up libusb detection to prefer 1.0 over 0.1, and accept diff --git a/urjtag/src/bus/generic_bus.c b/urjtag/src/bus/generic_bus.c index c04afd0b..bb010d3a 100644 --- a/urjtag/src/bus/generic_bus.c +++ b/urjtag/src/bus/generic_bus.c @@ -34,7 +34,7 @@ int urj_bus_generic_attach_sig (urj_part_t *part, urj_part_signal_t **sig, - char *id) + const char *id) { *sig = urj_part_find_signal (part, id); if (!*sig) diff --git a/urjtag/src/bus/generic_bus.h b/urjtag/src/bus/generic_bus.h index 37faccbb..5f6409a5 100644 --- a/urjtag/src/bus/generic_bus.h +++ b/urjtag/src/bus/generic_bus.h @@ -30,7 +30,7 @@ #include int urj_bus_generic_attach_sig (urj_part_t *part, urj_part_signal_t **sig, - char *id); + const char *id); urj_bus_t *urj_bus_generic_new (urj_chain_t *chain, const urj_bus_driver_t *driver,