s4:auth/unix_token: remove unused tevent_context from security_token_to_unix_token()
authorStefan Metzmacher <metze@samba.org>
Mon, 19 Jun 2017 06:26:26 +0000 (08:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 26 Jun 2017 06:47:15 +0000 (08:47 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/unix_token.c
source4/ntvfs/unixuid/vfs_unixuid.c

index 385109b96efcfbad8f58c35768ba7fc63c829199..e1e7cdad59a9f36a031bc32155aa4f9669a1cde1 100644 (file)
@@ -29,7 +29,6 @@
   form a security_unix_token from the current security_token
 */
 NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
-                                     struct tevent_context *ev,
                                      struct security_token *token,
                                      struct security_unix_token **sec)
 {
@@ -128,7 +127,7 @@ NTSTATUS auth_session_info_fill_unix(struct tevent_context *ev,
 {
        char *su;
        size_t len;
-       NTSTATUS status = security_token_to_unix_token(session_info, ev,
+       NTSTATUS status = security_token_to_unix_token(session_info,
                                                       session_info->security_token,
                                                       &session_info->unix_token);
        if (!NT_STATUS_IS_OK(status)) {
index 40ccd4ae7a956dd29c223e4026f85a91af6d81a8..995d7446136cf8747b597e7f1bf2c3b786ec9b5e 100644 (file)
@@ -156,9 +156,7 @@ static NTSTATUS nt_token_to_unix_security(struct ntvfs_module_context *ntvfs,
                                          struct security_token *token,
                                          struct security_unix_token **sec)
 {
-       return security_token_to_unix_token(req,
-                                           ntvfs->ctx->event_ctx,
-                                           token, sec);
+       return security_token_to_unix_token(req, token, sec);
 }
 
 /*