constify the line string given to urj_parse_line

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1876 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 14 years ago
parent 8df7a9cbbe
commit 080f7a428b

@ -4,6 +4,9 @@
* include/urjtag/parse.h: Document the various stream functions.
* include/urjtag/parse.h (urj_parse_line): Constify the "line" argument.
* src/global/parse.c (urj_parse_line): Likewise.
2011-02-17 Mike Frysinger <vapier@gentoo.org>
* data/analog/bf548/STEPPINGS: Add bf54x-0.4 support.

@ -37,7 +37,7 @@
* URJ_STATUS_ERROR on error
* URJ_STATUS_QUIT on quit command
*/
int urj_parse_line (urj_chain_t *chain, char *line);
int urj_parse_line (urj_chain_t *chain, const char *line);
/**
* Run each line in the specified stream through urj_parse_line().

@ -45,12 +45,13 @@
int
urj_parse_line (urj_chain_t *chain, char *line)
urj_parse_line (urj_chain_t *chain, const char *line)
{
int l, i, r, tcnt;
int escape = 0, quote_single = 0, quote_double = 0;
char **a;
char *c, *d;
const char *c;
char *d;
char *sline;
if (line == NULL)

Loading…
Cancel
Save