diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-08-19 16:55:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-08-19 16:55:47 +0000 |
commit | 42364e1b241d4babd0201f4ce4512c082d27f621 (patch) | |
tree | 5feb73fc60963be271919ecf163c25c6befba186 /source3/rpcclient | |
parent | e6fa31d6cb8056b6a0e60e4068e9828599a5689a (diff) | |
download | samba-42364e1b241d4babd0201f4ce4512c082d27f621.tar.gz samba-42364e1b241d4babd0201f4ce4512c082d27f621.tar.bz2 samba-42364e1b241d4babd0201f4ce4512c082d27f621.zip |
make rpcclient use print_guid()
(This used to be commit f2c48cadb22256564f2ddaa5169812c7c4383ec5)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 194e498122..ed68160658 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -86,15 +86,8 @@ static NTSTATUS cmd_lsa_query_info_policy(struct cli_state *cli, printf("forest name is %s\n", forest_name); if (info_class == 12) { - int i; - uint32 *data1 = (uint32 *) dom_guid.info; - uint16 *data2 = (uint16 *) &dom_guid.info[4]; - uint16 *data3 = (uint16 *) &dom_guid.info[6]; - printf("domain GUID is %08x-%04x-%04x", *data1,*data2,*data3); - printf("-%02x%02x-", dom_guid.info[8], dom_guid.info[9]); - for (i=10;i<GUID_SIZE;i++) - printf("%02x", dom_guid.info[i]); - printf("\n"); + printf("domain GUID is "); + print_guid(&dom_guid); } done: return result; |