VirtualBox

Changeset 43879 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 15, 2012 2:49:23 PM (12 years ago)
Author:
vboxsync
Message:

Extended RTOnce with termination cleanups. (Changes existing structures and functions.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevSMC.cpp

    r35353 r43879  
    237237 *
    238238 * @returns VINF_SUCCESS.
    239  * @param   pvUser1Ignored  Ignored.
    240  * @param   pvUser2Ignored  Ignored.
    241  */
    242 static DECLCALLBACK(int) devR0SmcInitOnce(void *pvUser1Ignored, void *pvUser2Ignored)
     239 * @param   pvUserIgnored     Ignored.
     240 */
     241static DECLCALLBACK(int) devR0SmcInitOnce(void *pvUserIgnored)
    243242{
    244243    g_fHaveOsk = devR0SmcQueryHostKey("OSK0", &g_abOsk0[0], sizeof(g_abOsk0))
    245244              && devR0SmcQueryHostKey("OSK1", &g_abOsk1[0], sizeof(g_abOsk1));
    246245
    247     NOREF(pvUser1Ignored); NOREF(pvUser2Ignored);
     246    NOREF(pvUserIgnored);
    248247    return VINF_SUCCESS;
    249248}
     
    259258    if (uOperation == SMC_CALLR0_READ_OSK)
    260259    {
    261         rc = RTOnce(&g_SmcR0Once, devR0SmcInitOnce, NULL, NULL);
     260        rc = RTOnce(&g_SmcR0Once, devR0SmcInitOnce, NULL);
    262261        if (   RT_SUCCESS(rc)
    263262            && g_fHaveOsk)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette