VirtualBox

Changeset 39740 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jan 10, 2012 3:46:17 PM (13 years ago)
Author:
vboxsync
Message:

pam_vbox: More cdecl stuff.

File:
1 edited

Legend:

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

    r39734 r39740  
    689689{
    690690    /* Parse arguments. */
    691     int i;
    692     for (i = 0; i < argc; i++)
     691    for (int i = 0; i < argc; i++)
    693692    {
    694693        if (!RTStrICmp(argv[i], "debug"))
     
    827826}
    828827
    829 
    830 DECLEXPORT(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    831 {
    832     pam_vbox_log(hPAM, "pam_vbox_setcred called\n");
     828RTDECL(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     829{
     830    pam_vbox_log(hPAM, "pam_vbox_setcred called, iFlags=0x%x\n", iFlags);
     831    for (int i = 0; i < argc; i++)
     832        pam_vbox_log(hPAM, "pam_vbox_setcred: argv[0] = %s\n", argv[i]);
    833833    return PAM_SUCCESS;
    834834}
    835835
    836 
    837 DECLEXPORT(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     836RTDECL(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    838837{
    839838    pam_vbox_log(hPAM, "pam_vbox_acct_mgmt called\n");
     
    842841
    843842
    844 DECLEXPORT(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     843RTDECL(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    845844{
    846845    pam_vbox_log(hPAM, "pam_vbox_open_session called\n");
     
    850849
    851850
    852 DECLEXPORT(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     851RTDECL(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    853852{
    854853    pam_vbox_log(hPAM, "pam_vbox_close_session called\n");
     
    856855}
    857856
    858 DECLEXPORT(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     857RTDECL(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    859858{
    860859    pam_vbox_log(hPAM, "pam_vbox_sm_chauthtok called\n");
     
    863862
    864863#ifdef DEBUG
    865 DECLEXPORT(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
     864RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    866865{
    867866    pam_vbox_log(g_pam_handle,
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