VirtualBox

Ignore:
Timestamp:
Aug 2, 2016 3:31:02 PM (8 years ago)
Author:
vboxsync
Message:

Additions/common: gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/pam/pam_vbox.cpp

    r62521 r62882  
    120120static void pam_vbox_error(pam_handle_t *hPAM, const char *pszFormat, ...)
    121121{
     122    RT_NOREF1(hPAM);
    122123    va_list va;
    123124    char *buf;
     
    141142static void pam_vbox_log(pam_handle_t *hPAM, const char *pszFormat, ...)
    142143{
     144    RT_NOREF1(hPAM);
    143145    if (g_verbosity)
    144146    {
     
    305307static void pam_vbox_shutdown(pam_handle_t *hPAM)
    306308{
     309    RT_NOREF1(hPAM);
    307310    VbglR3Term();
    308311}
     
    552555 *
    553556 * @return  IPRT status code.
    554  * @param   ThreadSelf              Thread struct to this thread.
     557 * @param   hThreadSelf             Thread handle.
    555558 * @param   pvUser                  Pointer to a PAMVBOXTHREAD structure providing
    556559 *                                  required data used / set by the thread.
    557560 */
    558 static DECLCALLBACK(int) pam_vbox_wait_thread(RTTHREAD ThreadSelf, void *pvUser)
    559 {
     561static DECLCALLBACK(int) pam_vbox_wait_thread(RTTHREAD hThreadSelf, void *pvUser)
     562{
     563    RT_NOREF1(hThreadSelf);
    560564    PPAMVBOXTHREAD pUserData = (PPAMVBOXTHREAD)pvUser;
    561565    AssertPtr(pUserData);
     
    677681static int pam_vbox_wait_for_creds(pam_handle_t *hPAM, uint32_t uClientID, uint32_t uTimeoutMS)
    678682{
     683    RT_NOREF1(uClientID);
    679684    PAMVBOXTHREAD threadData;
    680685    threadData.hPAM = hPAM;
     
    702707
    703708
    704 DECLEXPORT(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags,
    705                                     int argc, const char **argv)
    706 {
     709DECLEXPORT(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     710{
     711    RT_NOREF1(iFlags);
     712
    707713    /* Parse arguments. */
    708714    for (int i = 0; i < argc; i++)
     
    848854DECLEXPORT(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    849855{
     856    RT_NOREF3(iFlags, argc, argv);
    850857    pam_vbox_log(hPAM, "pam_vbox_acct_mgmt called\n");
    851858    return PAM_SUCCESS;
     
    855862DECLEXPORT(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    856863{
     864    RT_NOREF3(iFlags, argc, argv);
    857865    pam_vbox_log(hPAM, "pam_vbox_open_session called\n");
    858866    RTPrintf("This session was provided by VirtualBox Guest Additions. Have a lot of fun!\n");
     
    863871DECLEXPORT(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    864872{
     873    RT_NOREF3(iFlags, argc, argv);
    865874    pam_vbox_log(hPAM, "pam_vbox_close_session called\n");
    866875    return PAM_SUCCESS;
     
    870879DECLEXPORT(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    871880{
     881    RT_NOREF3(iFlags, argc, argv);
    872882    pam_vbox_log(hPAM, "pam_vbox_sm_chauthtok called\n");
    873883    return PAM_SUCCESS;
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