main() changed its argv declaration, so follow suit in some FBSD added code.
This commit is contained in:
parent
d4d5315c23
commit
8c5f736449
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110024
@ -3368,7 +3368,7 @@ process_command (argc, argv)
|
||||
int len;
|
||||
int optc = 1;
|
||||
int new_argc;
|
||||
char **new_argv;
|
||||
const char **new_argv;
|
||||
char *envopts;
|
||||
|
||||
while (isspace (*temp))
|
||||
@ -3381,7 +3381,7 @@ process_command (argc, argv)
|
||||
if ((isspace (envopts[i])) && ! (isspace (envopts[i+1])))
|
||||
optc++;
|
||||
|
||||
new_argv = (char **) alloca ((optc + argc) * sizeof(char *));
|
||||
new_argv = (const char **) alloca ((optc + argc) * sizeof(char *));
|
||||
|
||||
for (i = 0, new_argc = 1; new_argc <= optc; new_argc++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user