diff options
-rw-r--r-- | source3/include/rpc_secdes.h | 7 | ||||
-rw-r--r-- | source3/lib/genparser_samba.c | 14 |
2 files changed, 7 insertions, 14 deletions
diff --git a/source3/include/rpc_secdes.h b/source3/include/rpc_secdes.h index 4bb39dc935..56145ac024 100644 --- a/source3/include/rpc_secdes.h +++ b/source3/include/rpc_secdes.h @@ -113,13 +113,6 @@ PROTECTED_SACL_SECURITY_INFORMATION|\ PROTECTED_DACL_SECURITY_INFORMATION) -/* Globally Unique ID */ -#define GUID_SIZE 16 -typedef struct guid_info -{ - uint8 info[GUID_SIZE]; -} GUID; - /* SEC_ACCESS */ typedef struct security_info_info { diff --git a/source3/lib/genparser_samba.c b/source3/lib/genparser_samba.c index 7eabf5a56e..8f469a46d6 100644 --- a/source3/lib/genparser_samba.c +++ b/source3/lib/genparser_samba.c @@ -63,7 +63,7 @@ int gen_parse_SEC_ACCESS(TALLOC_CTX *mem_ctx, char *ptr, const char *str) int gen_parse_GUID(TALLOC_CTX *mem_ctx, char *ptr, const char *str) { - int info[GUID_SIZE]; + int info[UUID_FLAT_SIZE]; int i; char *sc; char *p; @@ -74,7 +74,7 @@ int gen_parse_GUID(TALLOC_CTX *mem_ctx, char *ptr, const char *str) sc = m; memset(info, 0, sizeof(info)); - for (i = 0; i < GUID_SIZE; i++) { + for (i = 0; i < UUID_FLAT_SIZE; i++) { p = strchr(sc, ','); if (p != NULL) p = '\0'; info[i] = atoi(sc); @@ -82,8 +82,8 @@ int gen_parse_GUID(TALLOC_CTX *mem_ctx, char *ptr, const char *str) } free(m); - for (i = 0; i < GUID_SIZE; i++) { - ((GUID *)ptr)->info[i] = info[i]; + for (i = 0; i < UUID_FLAT_SIZE; i++) { + ((UUID_FLAT *)ptr)->info[i] = info[i]; } return 0; @@ -172,10 +172,10 @@ int gen_dump_GUID(TALLOC_CTX *mem_ctx, struct parse_string *p, const char *ptr, { int i, r; - for (i = 0; i < (GUID_SIZE - 1); i++) { - if (!(r = addshort(mem_ctx, p, "%d,", ((GUID *)ptr)->info[i]))) return r; + for (i = 0; i < (UUID_FLAT_SIZE - 1); i++) { + if (!(r = addshort(mem_ctx, p, "%d,", ((UUID_FLAT *)ptr)->info[i]))) return r; } - return addshort(mem_ctx, p, "%d", ((GUID *)ptr)->info[i]); + return addshort(mem_ctx, p, "%d", ((UUID_FLAT *)ptr)->info[i]); } int gen_dump_SEC_ACE(TALLOC_CTX *mem_ctx, struct parse_string *p, const char *ptr, unsigned indent) |