diff options
Diffstat (limited to 'main/getopt.c')
-rw-r--r-- | main/getopt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/getopt.c b/main/getopt.c index 591c8c7778..8126d577b4 100644 --- a/main/getopt.c +++ b/main/getopt.c @@ -1,8 +1,8 @@ /* +----------------------------------------------------------------------+ - | PHP Version 5 | + | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2013 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -80,7 +80,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char } } if ((argv[*optind][0] == '-') && (argv[*optind][1] == '-')) { - char *pos; + const char *pos; int arg_end = strlen(argv[*optind])-1; /* '--' indicates end of args if not followed by a known long option name */ |