summaryrefslogtreecommitdiff
path: root/sapi/cgi/getopt.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 16:44:59 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 16:44:59 +0000
commit073b148167887c51f30fff8f7c569fcf28c5bb72 (patch)
tree0e7362611b67eb01a95c7ef65322aef0a1b05411 /sapi/cgi/getopt.c
parent59b53ea2c8f1dbb4797ffac2a31caad392927b48 (diff)
downloadphp-git-073b148167887c51f30fff8f7c569fcf28c5bb72.tar.gz
More abstraction
Diffstat (limited to 'sapi/cgi/getopt.c')
-rw-r--r--sapi/cgi/getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cgi/getopt.c b/sapi/cgi/getopt.c
index e34356a6b0..4d9187ba8e 100644
--- a/sapi/cgi/getopt.c
+++ b/sapi/cgi/getopt.c
@@ -10,8 +10,8 @@
#define OPTERRARG (3)
-PHPAPI char *ap_php_optarg;
-PHPAPI int ap_php_optind = 1;
+char *ap_php_optarg;
+int ap_php_optind = 1;
static int ap_php_opterr = 1;
static int ap_php_optopt;
@@ -42,7 +42,7 @@ ap_php_optiserr(int argc, char * const *argv, int oint, const char *optstr,
return('?');
}
-PHPAPI int ap_php_getopt(int argc, char* const *argv, const char *optstr)
+int ap_php_getopt(int argc, char* const *argv, const char *optstr)
{
static int optchr = 0;
static int dash = 0; /* have already seen the - */