# HG changeset patch # User reimar # Date 1306669165 0 # Node ID 3b95353bb7f9c77cdca15e3afa293fcb156f8075 # Parent 7f43e986d780d051420edcc35f451f50174edac4 Add some "const". diff -r 7f43e986d780 -r 3b95353bb7f9 stream/stream_cue.c --- a/stream/stream_cue.c Sun May 29 11:37:42 2011 +0000 +++ b/stream/stream_cue.c Sun May 29 11:39:25 2011 +0000 @@ -107,7 +107,7 @@ /* number of tracks on the cd */ static int nTracks = 0; -static int digits2int(char s[2], int errval) { +static int digits2int(const char s[2], int errval) { uint8_t a = s[0] - '0'; uint8_t b = s[1] - '0'; if (a > 9 || b > 9) @@ -171,7 +171,7 @@ * on the arrays to have the same size, thus we need to make * sure the sizes are in sync. */ -static int cue_find_bin (char *firstline) { +static int cue_find_bin (const char *firstline) { const char *cur_name; int i; char bin_filename[256]; @@ -304,7 +304,7 @@ } -static int cue_read_cue (char *in_cue_filename) +static int cue_read_cue (const char *in_cue_filename) { struct stat filestat; char sLine[256];