summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/misc/term.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Runtime/common/misc/term.cpp')
-rw-r--r--src/VBox/Runtime/common/misc/term.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/VBox/Runtime/common/misc/term.cpp b/src/VBox/Runtime/common/misc/term.cpp
index 7b789df8..7a7fb765 100644
--- a/src/VBox/Runtime/common/misc/term.cpp
+++ b/src/VBox/Runtime/common/misc/term.cpp
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2009 Oracle Corporation
+ * Copyright (C) 2009-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -76,10 +76,9 @@ static PRTTERMCALLBACKREC g_pCallbackHead = NULL;
* Initializes the globals.
*
* @returns IPRT status code
- * @param pvUser1 Ignored.
- * @param pvUser2 Ignored.
+ * @param pvUser Ignored.
*/
-static DECLCALLBACK(int32_t) rtTermInitOnce(void *pvUser1, void *pvUser2)
+static DECLCALLBACK(int32_t) rtTermInitOnce(void *pvUser)
{
RTSEMFASTMUTEX hFastMutex;
int rc;
@@ -92,8 +91,7 @@ static DECLCALLBACK(int32_t) rtTermInitOnce(void *pvUser1, void *pvUser2)
if (RT_SUCCESS(rc))
g_hFastMutex = hFastMutex;
- NOREF(pvUser1);
- NOREF(pvUser2);
+ NOREF(pvUser);
return rc;
}
@@ -110,7 +108,7 @@ RTDECL(int) RTTermRegisterCallback(PFNRTTERMCALLBACK pfnCallback, void *pvUser)
*/
AssertPtrReturn(pfnCallback, VERR_INVALID_POINTER);
- rc = RTOnce(&g_InitTermCallbacksOnce, rtTermInitOnce, NULL, NULL);
+ rc = RTOnce(&g_InitTermCallbacksOnce, rtTermInitOnce, NULL);
if (RT_FAILURE(rc))
return rc;