summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-25 10:10:52 +0100
committerGünther Deschner <gd@samba.org>2007-11-27 14:18:47 +0100
commit1011b32678c7b32472a909b9f515698947d2a389 (patch)
treedd81c00e9cbb967cad2bc725f7a0754851b1764e /source3/utils
parent80c2446321c519797a57b8006942a983f8481d79 (diff)
downloadsamba-1011b32678c7b32472a909b9f515698947d2a389.tar.gz
samba-1011b32678c7b32472a909b9f515698947d2a389.tar.bz2
samba-1011b32678c7b32472a909b9f515698947d2a389.zip
Remove some statics
(This used to be commit 1fab16ffb888cd4ec18e52d9da33976a67a5d104)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 81b13ba76e..ac8f794354 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -80,6 +80,7 @@ static int net_ads_cldap_netlogon(ADS_STRUCT *ads)
{
char addr[INET6_ADDRSTRLEN];
struct cldap_netlogon_reply reply;
+ struct GUID tmp_guid;
print_sockaddr(addr, sizeof(addr), &ads->ldap.ss);
if ( !ads_cldap_netlogon(addr, ads->server.realm, &reply ) ) {
@@ -102,8 +103,10 @@ static int net_ads_cldap_netlogon(ADS_STRUCT *ads)
d_printf("0x%x\n", reply.type);
break;
}
- d_printf("GUID: %s\n",
- smb_uuid_string_static(smb_uuid_unpack_static(reply.guid)));
+
+ smb_uuid_unpack(reply.guid, &tmp_guid);
+ d_printf("GUID: %s\n", smb_uuid_string(talloc_tos(), tmp_guid));
+
d_printf("Flags:\n"
"\tIs a PDC: %s\n"
"\tIs a GC of the forest: %s\n"