summaryrefslogtreecommitdiffstats
path: root/support/ab.c
diff options
context:
space:
mode:
authorGreg Stein <gstein@apache.org>2000-11-29 18:33:03 +0100
committerGreg Stein <gstein@apache.org>2000-11-29 18:33:03 +0100
commit656a5d308172035a18dcfda256de30f463d3145e (patch)
treeee83bd84e2603dadf8707338ac1af4d30611da5d /support/ab.c
parent Make Win32 build again (diff)
downloadapache2-656a5d308172035a18dcfda256de30f463d3145e.tar.xz
apache2-656a5d308172035a18dcfda256de30f463d3145e.zip
Use "const char * const *" for process->argv (which is the correct
const-ness since we sometimes put "some string" in there, and also the CRT's argv). propagate this change within http_main and mpm/winnt/ (also correct some other const type usage within the MPM). fix ab's call to parse_url() which removed a const to actually manipulate an arg from the CRT's argv (indirectly via opt->arg). no idea how this has avoided segfaulting. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--support/ab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/ab.c b/support/ab.c
index 115697c18a..71f4c5962a 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -893,14 +893,14 @@ static void test(void)
static void copyright(void)
{
if (!use_html) {
- printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.38 $> apache-2.0");
+ printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.39 $> apache-2.0");
printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
printf("Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/\n");
printf("\n");
}
else {
printf("<p>\n");
- printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.38 $");
+ printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.39 $");
printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
printf(" Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/<br>\n");
printf("</p>\n<p>\n");
@@ -1175,7 +1175,7 @@ int main(int argc, const char * const argv[])
usage(argv[0]);
}
- if (parse_url((char*)opt->argv[opt->ind++])) {
+ if (parse_url(apr_pstrdup(cntxt, opt->argv[opt->ind++]))) {
fprintf(stderr, "%s: invalid URL\n", argv[0]);
usage(argv[0]);
}