util_str_hex: use array syntax in guid functions to document usage
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 22 Mar 2018 04:57:05 +0000 (17:57 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 May 2018 23:57:16 +0000 (01:57 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/util_str_hex.c
lib/util/util_str_hex.h

index 148735b..792b4e8 100644 (file)
@@ -38,8 +38,8 @@ NTSTATUS parse_guid_string(const char *s,
                           uint32_t *time_low,
                           uint32_t *time_mid,
                           uint32_t *time_hi_and_version,
-                          uint32_t *clock_seq,
-                          uint32_t *node)
+                          uint32_t clock_seq[2],
+                          uint32_t node[6])
 {
        uint64_t tmp;
        NTSTATUS status;
index 2d0ba65..d0d53e3 100644 (file)
@@ -6,5 +6,5 @@ NTSTATUS parse_guid_string(const char *s,
                           uint32_t *time_low,
                           uint32_t *time_mid,
                           uint32_t *time_hi_and_version,
-                          uint32_t *clock_seq,
-                          uint32_t *node);
+                          uint32_t clock_seq[2],
+                          uint32_t node[6]);