diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-24 20:17:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:49 -0500 |
commit | 49a3f72ebbf2ace388d0b6a488a9ae0b2c5675ac (patch) | |
tree | 9ee5099448515fe5a183ee4c6a198180e84f8389 /source3/libaddns/dnsupdate.c | |
parent | 25a685b71ad4e6584b41641fcbee1a972714a27a (diff) | |
download | samba-49a3f72ebbf2ace388d0b6a488a9ae0b2c5675ac.tar.gz samba-49a3f72ebbf2ace388d0b6a488a9ae0b2c5675ac.tar.bz2 samba-49a3f72ebbf2ace388d0b6a488a9ae0b2c5675ac.zip |
r17805: Sorry Jerry, I could not stand the warnings... :-)
(This used to be commit f5fcafd77e8a749659ef90296402c5130f45419b)
Diffstat (limited to 'source3/libaddns/dnsupdate.c')
-rw-r--r-- | source3/libaddns/dnsupdate.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/libaddns/dnsupdate.c b/source3/libaddns/dnsupdate.c index 02c69feac8..36c5cbb13a 100644 --- a/source3/libaddns/dnsupdate.c +++ b/source3/libaddns/dnsupdate.c @@ -466,7 +466,7 @@ int32 DNSUpdateGenerateSignature( gss_ctx_id_t * pGSSContext, dwTimeSigned, wFudge, pDNSUpdateRequest->wIdentification, - MicDesc.value, + (uint8 *)MicDesc.value, MicDesc.length, &pDNSTSIGRecord ); BAIL_ON_ERROR( dwError ); @@ -503,7 +503,7 @@ int32 DNSBuildSignatureBuffer( int32 dwMaxSignatureSize, uint8 ** ppSignature ) uint8 *pSignature = NULL; dwError = DNSAllocateMemory( dwMaxSignatureSize, - ( void ** ) &pSignature ); + ( void * ) &pSignature ); BAIL_ON_ERROR( dwError ); *ppSignature = pSignature; @@ -579,7 +579,7 @@ int32 DNSBuildMessageBuffer( DNS_UPDATE_REQUEST * pDNSUpdateRequest, dwError = DNSAllocateMemory( dwMessageSize, - ( void ** ) &pMessageBuffer ); + ( void * ) &pMessageBuffer ); BAIL_ON_ERROR( dwError ); pOffset = pMessageBuffer; @@ -605,7 +605,11 @@ int32 DNSBuildMessageBuffer( DNS_UPDATE_REQUEST * pDNSUpdateRequest, memcpy( pOffset, &wnTimePrefix, sizeof( int16 ) ); pOffset += sizeof( int16 ); - time( (time_t*)&dwTimeSigned ); + { + time_t t; + time(&t); + dwTimeSigned = t; + } dwnTimeSigned = htonl( dwTimeSigned ); memcpy( pOffset, &dwnTimeSigned, sizeof( int32 ) ); pOffset += sizeof( int32 ); |