s3: inline get_uid_from_state
authorVolker Lendecke <vl@samba.org>
Fri, 28 Jan 2011 18:07:40 +0000 (19:07 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 28 Jan 2011 22:38:16 +0000 (23:38 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan 28 23:38:16 CET 2011 on sn-devel-104

source3/winbindd/winbindd_pam.c

index 004f3d47a353e5bbcb95f355b52a84ef9ffc6b92..57a453efe2fcc667019d66e3fffabdb347025b34 100644 (file)
@@ -515,11 +515,6 @@ uid_t get_uid_from_request(struct winbindd_request *request)
        return uid;
 }
 
-static uid_t get_uid_from_state(struct winbindd_cli_state *state)
-{
-       return get_uid_from_request(state->request);
-}
-
 /**********************************************************************
  Authenticate a user with a clear text password using Kerberos and fill up
  ccache if required
@@ -923,7 +918,7 @@ static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
                        const char *service = NULL;
                        const char *user_ccache_file;
 
-                       uid = get_uid_from_state(state);
+                       uid = get_uid_from_request(state->request);
                        if (uid == -1) {
                                DEBUG(0,("winbindd_dual_pam_auth_cached: invalid uid\n"));
                                return NT_STATUS_INVALID_PARAMETER;