From d1bb21b0d531ef8f40400716b3e1f6314c7c1e8a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 26 Aug 2010 22:08:22 +1000 Subject: s3:auth Remove NT_USER_TOKEN The all UPPER case typedef is no longer the preferred Samba style and this makes it easier to see that this is the IDL-derivied structure Andrew Bartlett Signed-off-by: Andrew Tridgell --- source3/registry/reg_util_token.c | 6 +++--- source3/registry/reg_util_token.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/registry') diff --git a/source3/registry/reg_util_token.c b/source3/registry/reg_util_token.c index f8cd5c590f..898b64b2a7 100644 --- a/source3/registry/reg_util_token.c +++ b/source3/registry/reg_util_token.c @@ -28,16 +28,16 @@ * - disk operators privilege */ NTSTATUS registry_create_admin_token(TALLOC_CTX *mem_ctx, - NT_USER_TOKEN **ptoken) + struct security_token **ptoken) { NTSTATUS status; - NT_USER_TOKEN *token = NULL; + struct security_token *token = NULL; if (ptoken == NULL) { return NT_STATUS_INVALID_PARAMETER; } - token = TALLOC_ZERO_P(mem_ctx, NT_USER_TOKEN); + token = TALLOC_ZERO_P(mem_ctx, struct security_token); if (token == NULL) { DEBUG(1, ("talloc failed\n")); status = NT_STATUS_NO_MEMORY; diff --git a/source3/registry/reg_util_token.h b/source3/registry/reg_util_token.h index 80cec49fcc..558c78728a 100644 --- a/source3/registry/reg_util_token.h +++ b/source3/registry/reg_util_token.h @@ -21,6 +21,6 @@ #define _REG_UTIL_TOKEN_H NTSTATUS registry_create_admin_token(TALLOC_CTX *mem_ctx, - NT_USER_TOKEN **ptoken); + struct security_token **ptoken); #endif /* _REG_UTIL_TOKEN_H */ -- cgit