summaryrefslogtreecommitdiff
path: root/srclib/apr/misc/win32/start.c
diff options
context:
space:
mode:
Diffstat (limited to 'srclib/apr/misc/win32/start.c')
-rw-r--r--srclib/apr/misc/win32/start.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/srclib/apr/misc/win32/start.c b/srclib/apr/misc/win32/start.c
index be43f54e..f51b749d 100644
--- a/srclib/apr/misc/win32/start.c
+++ b/srclib/apr/misc/win32/start.c
@@ -1,9 +1,9 @@
-/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
- * applicable.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@@ -34,10 +34,10 @@ int APR_DECLARE_DATA apr_app_init_complete = 0;
*
* An internal apr function to convert a double-null terminated set
* of single-null terminated strings from wide Unicode to narrow utf-8
- * as a list of strings. These are allocated from the MSVCRT's
+ * as a list of strings. These are allocated from the MSVCRT's
* _CRT_BLOCK to trick the system into trusting our store.
*/
-static int warrsztoastr(const char * const * *retarr,
+static int warrsztoastr(const char * const * *retarr,
const wchar_t * arrsz, int args)
{
const apr_wchar_t *wch;
@@ -49,7 +49,7 @@ static int warrsztoastr(const char * const * *retarr,
if (args < 0) {
for (args = 1, wch = arrsz; wch[0] || wch[1]; ++wch)
- if (!*wch)
+ if (!*wch)
++args;
}
wsize = 1 + wch - arrsz;
@@ -63,7 +63,7 @@ static int warrsztoastr(const char * const * *retarr,
* 4 ucs bytes will hold a wchar_t pair value (20 bits)
*/
newlen = totlen = wsize * 3 + 1;
- newarr[0] = _malloc_dbg(newlen * sizeof(char),
+ newarr[0] = _malloc_dbg(newlen * sizeof(char),
_CRT_BLOCK, __FILE__, __LINE__);
(void)apr_conv_ucs2_to_utf8(arrsz, &wsize,
@@ -72,7 +72,7 @@ static int warrsztoastr(const char * const * *retarr,
assert(newlen && !wsize);
/* Return to the free store if the heap realloc is the least bit optimized
*/
- newarr[0] = _realloc_dbg(newarr[0], totlen - newlen,
+ newarr[0] = _realloc_dbg(newarr[0], totlen - newlen,
_CRT_BLOCK, __FILE__, __LINE__);
for (arg = 1; arg < args; ++arg) {
@@ -91,8 +91,8 @@ static int warrsztoastr(const char * const * *retarr,
/* Reprocess the arguments to main() for a completely apr-ized application
*/
-APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
- const char * const * *argv,
+APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
+ const char * const * *argv,
const char * const * *env)
{
apr_status_t rv = apr_initialize();
@@ -127,8 +127,8 @@ APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
sysstr = GetEnvironmentStringsW();
dupenv = warrsztoastr(&_environ, sysstr, -1);
- if (env) {
- *env = _malloc_dbg((dupenv + 1) * sizeof (char *),
+ if (env) {
+ *env = _malloc_dbg((dupenv + 1) * sizeof (char *),
_CRT_BLOCK, __FILE__, __LINE__ );
memcpy((void*)*env, _environ, (dupenv + 1) * sizeof (char *));
}
@@ -177,11 +177,11 @@ APR_DECLARE(apr_status_t) apr_initialize(void)
if (apr_get_oslevel(&osver) != APR_SUCCESS) {
return APR_EEXIST;
}
-
+
tls_apr_thread = TlsAlloc();
if ((status = apr_pool_initialize()) != APR_SUCCESS)
return status;
-
+
if (apr_pool_create(&pool, NULL) != APR_SUCCESS) {
return APR_ENOPOOL;
}
@@ -198,7 +198,7 @@ APR_DECLARE(apr_status_t) apr_initialize(void)
WSACleanup();
return APR_EEXIST;
}
-
+
apr_signal_init(pool);
return APR_SUCCESS;
@@ -211,7 +211,7 @@ APR_DECLARE_NONSTD(void) apr_terminate(void)
return;
}
apr_pool_terminate();
-
+
WSACleanup();
TlsFree(tls_apr_thread);