From ca594adb5a71f2bf60c1380172b8e61b075d9479 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 10 Nov 2009 04:27:15 -0800 Subject: add const keyword to some APIs Add 'const' keyword to 'char *' parameters to allow command handlers to pass constant string arguments. These changes allow the 'args' command handler to be changed to 'const' in a subsequent patch. --- src/pld/xilinx_bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pld/xilinx_bit.c') diff --git a/src/pld/xilinx_bit.c b/src/pld/xilinx_bit.c index c766805f..33c3ed79 100644 --- a/src/pld/xilinx_bit.c +++ b/src/pld/xilinx_bit.c @@ -75,7 +75,7 @@ static int read_section(FILE *input_file, int length_size, char section, return ERROR_OK; } -int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, char *filename) +int xilinx_read_bit_file(xilinx_bit_file_t *bit_file, const char *filename) { FILE *input_file; struct stat input_stat; -- cgit v1.2.3-18-g5258