1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Constify an argument to a function.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
Hartmut Brandt 2005-02-03 11:51:25 +00:00
parent 9ba5835fba
commit b26f9f6376
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141192

View File

@ -107,7 +107,7 @@ typedef enum {
* last two fields are stored in condInvert and condDefProc, respectively.
*/
static void CondPushBack(Token);
static int CondGetArg(char **, char **, char *, Boolean);
static int CondGetArg(char **, char **, const char *, Boolean);
static Boolean CondDoDefined(int, char *);
static Boolean CondDoMake(int, char *);
static Boolean CondDoExists(int, char *);
@ -186,7 +186,7 @@ CondPushBack(Token t)
*-----------------------------------------------------------------------
*/
static int
CondGetArg(char **linePtr, char **argPtr, char *func, Boolean parens)
CondGetArg(char **linePtr, char **argPtr, const char *func, Boolean parens)
{
char *cp;
size_t argLen;
@ -515,7 +515,7 @@ CondToken(Boolean doEval)
case '$': {
char *lhs;
char *rhs;
char *op;
const char *op;
size_t varSpecLen;
Boolean doFree;