summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2015-11-03 18:02:56 -0800
committerAditya Mandaleeka <adityam@microsoft.com>2015-11-04 12:55:04 -0800
commit60b3af370a3f27268fa2803603d5f8b9ee07ff82 (patch)
tree97ff5dad1adfa60ad221e6b2bbebc62061402c94 /src/pal
parent9096f02c8fdd484770347ed62a1eaef8984c1fb3 (diff)
downloadcoreclr-60b3af370a3f27268fa2803603d5f8b9ee07ff82.tar.gz
coreclr-60b3af370a3f27268fa2803603d5f8b9ee07ff82.tar.bz2
coreclr-60b3af370a3f27268fa2803603d5f8b9ee07ff82.zip
Remove thread parameter from some PAL initialization functions.
Diffstat (limited to 'src/pal')
-rw-r--r--src/pal/src/init/pal.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp
index 9b7de99601..00ce8148da 100644
--- a/src/pal/src/init/pal.cpp
+++ b/src/pal/src/init/pal.cpp
@@ -95,8 +95,8 @@ static PCRITICAL_SECTION init_critsec = NULL;
static int Initialize(int argc, const char *const argv[], DWORD flags);
static BOOL INIT_IncreaseDescriptorLimit(void);
-static LPWSTR INIT_FormatCommandLine (CPalThread *pThread, int argc, const char * const *argv);
-static LPWSTR INIT_FindEXEPath(CPalThread *pThread, LPCSTR exe_name);
+static LPWSTR INIT_FormatCommandLine (int argc, const char * const *argv);
+static LPWSTR INIT_FindEXEPath(LPCSTR exe_name);
#ifdef _DEBUG
extern void PROCDumpThreadList(void);
@@ -397,7 +397,7 @@ Initialize(
if (argc > 0 && argv != NULL)
{
/* build the command line */
- command_line = INIT_FormatCommandLine(pThread, argc, argv);
+ command_line = INIT_FormatCommandLine(argc, argv);
if (NULL == command_line)
{
ERROR("Error building command line\n");
@@ -405,7 +405,7 @@ Initialize(
}
/* find out the application's full path */
- exe_path = INIT_FindEXEPath(pThread, argv[0]);
+ exe_path = INIT_FindEXEPath(argv[0]);
if (NULL == exe_path)
{
ERROR("Unable to find exe path\n");
@@ -998,7 +998,7 @@ Note : not all peculiarities of Windows command-line processing are supported;
passed to argv as \\a... there may be other similar cases
-there may be other characters which must be escaped
--*/
-static LPWSTR INIT_FormatCommandLine (CPalThread *pThread, int argc, const char * const *argv)
+static LPWSTR INIT_FormatCommandLine (int argc, const char * const *argv)
{
LPWSTR retval;
LPSTR command_line=NULL, command_ptr;
@@ -1032,7 +1032,7 @@ static LPWSTR INIT_FormatCommandLine (CPalThread *pThread, int argc, const char
command_ptr=command_line;
for(i=0; i<argc; i++)
{
- /* double-quote at beginning of argument containing at leat one space */
+ /* double-quote at beginning of argument containing at least one space */
for(j = 0; (argv[i][j] != 0) && (!isspace((unsigned char) argv[i][j])); j++);
if (argv[i][j] != 0)
@@ -1116,7 +1116,7 @@ Notes 2:
This doesn't handle the case of directories with the desired name
(and directories are usually executable...)
--*/
-static LPWSTR INIT_FindEXEPath(CPalThread *pThread, LPCSTR exe_name)
+static LPWSTR INIT_FindEXEPath(LPCSTR exe_name)
{
#ifndef __APPLE__
CHAR real_path[PATH_MAX+1];