Const poison a couple of interfaces.

Obtained from: lua boot project
Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-12-08 19:57:11 +00:00
parent c5095910a0
commit bd04a914bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326711
3 changed files with 5 additions and 5 deletions

View File

@ -49,10 +49,10 @@ void interact(const char *rc);
int include(const char *filename);
/* interp_backslash.c */
char *backslash(char *str);
char *backslash(const char *str);
/* interp_parse.c */
int parse(int *argc, char ***argv, char *str);
int parse(int *argc, char ***argv, const char *str);
/* interp_forth.c */
void bf_init(const char *rc);

View File

@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$");
* processing" done on it. Original can be free'd if desired.
*/
char *
backslash(char *str)
backslash(const char *str)
{
/*
* Remove backslashes from the strings. Turn \040 etc. into a single

View File

@ -7,7 +7,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
*
* Jordan K. Hubbard
* 29 August 1998
*
@ -82,7 +82,7 @@ isdquote(int ch)
}
int
parse(int *argc, char ***argv, char *str)
parse(int *argc, char ***argv, const char *str)
{
int ac;
char *val, *p, *q, *copy = NULL;