summaryrefslogtreecommitdiff
path: root/source3/libaddns/dnsrecord.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-24 20:17:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:49 -0500
commit49a3f72ebbf2ace388d0b6a488a9ae0b2c5675ac (patch)
tree9ee5099448515fe5a183ee4c6a198180e84f8389 /source3/libaddns/dnsrecord.c
parent25a685b71ad4e6584b41641fcbee1a972714a27a (diff)
downloadsamba-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/dnsrecord.c')
-rw-r--r--source3/libaddns/dnsrecord.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/libaddns/dnsrecord.c b/source3/libaddns/dnsrecord.c
index 704d747ee9..2b0c902d1c 100644
--- a/source3/libaddns/dnsrecord.c
+++ b/source3/libaddns/dnsrecord.c
@@ -39,7 +39,7 @@ int32 DNSCreateDeleteRecord( char *szHost, int16 wClass,
BAIL_ON_ERROR( dwError );
dwError = DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRRRecord );
+ ( void * ) &pDNSRRRecord );
BAIL_ON_ERROR( dwError );
pDNSRRRecord->RRHeader.dwTTL = 0;
@@ -81,7 +81,7 @@ int32 DNSCreateARecord( char *szHost, int16 wClass,
dwError =
DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRRRecord );
+ ( void * ) &pDNSRRRecord );
BAIL_ON_ERROR( dwError );
pDNSRRRecord->RRHeader.wType = wType;
@@ -96,7 +96,7 @@ int32 DNSCreateARecord( char *szHost, int16 wClass,
pDNSRRRecord->RRHeader.wRDataSize = sizeof( int32 );
dwError =
DNSAllocateMemory( sizeof( int32 ),
- ( void ** ) &pRData );
+ ( void * ) &pRData );
dwnIP = htonl( dwIP );
memcpy( pRData, &dwnIP, sizeof( int32 ) );
pDNSRRRecord->pRData = pRData;
@@ -151,7 +151,7 @@ int32 DNSCreateTKeyRecord( char *szKeyName, uint8 * pKeyData,
dwError =
DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRecord );
+ ( void * ) &pDNSRecord );
BAIL_ON_ERROR( dwError );
dwError = DNSDomainNameFromString( szKeyName, &pDomainName );
@@ -181,7 +181,7 @@ int32 DNSCreateTKeyRecord( char *szKeyName, uint8 * pKeyData,
sizeof( wKeySize ) + wKeySize + sizeof( wOtherSize ) +
wOtherSize;
- dwError = DNSAllocateMemory( dwRDataSize, ( void ** ) &pRData );
+ dwError = DNSAllocateMemory( dwRDataSize, ( void * ) &pRData );
BAIL_ON_ERROR( dwError );
dwnInception = htonl( dwInception );
@@ -277,7 +277,7 @@ int32 DNSCreateTSIGRecord( char *szKeyName, int32 dwTimeSigned,
dwError =
DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRecord );
+ ( void * ) &pDNSRecord );
BAIL_ON_ERROR( dwError );
dwError = DNSDomainNameFromString( szKeyName, &pDomainName );
@@ -303,7 +303,7 @@ int32 DNSCreateTSIGRecord( char *szKeyName, int32 dwTimeSigned,
wMacSize + sizeof( wOriginalID ) + sizeof( wError ) +
sizeof( wOtherLen );
- dwError = DNSAllocateMemory( dwRDataSize, ( void ** ) &pRData );
+ dwError = DNSAllocateMemory( dwRDataSize, ( void * ) &pRData );
BAIL_ON_ERROR( dwError );
/* Convert t to 48 bit network order */
@@ -387,7 +387,7 @@ int32 DNSCreateQuestionRecord( char *pszQName, int16 wQType,
dwError =
DNSAllocateMemory( sizeof( DNS_QUESTION_RECORD ),
- ( void ** ) &pDNSQuestionRecord );
+ ( void * ) &pDNSQuestionRecord );
BAIL_ON_ERROR( dwError );
pDNSQuestionRecord->pDomainName = pDomainName;
@@ -423,7 +423,7 @@ int32 DNSCreateZoneRecord( char *pszZName, DNS_ZONE_RECORD ** ppDNSZoneRecord )
dwError =
DNSAllocateMemory( sizeof( DNS_ZONE_RECORD ),
- ( void ** ) &pDNSZoneRecord );
+ ( void * ) &pDNSZoneRecord );
BAIL_ON_ERROR( dwError );
pDNSZoneRecord->pDomainName = pDomainName;
@@ -469,7 +469,7 @@ int32 DNSCreateNameInUseRecord( char *pszName, int32 qtype,
dwError =
DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRRRecord );
+ ( void * ) &pDNSRRRecord );
BAIL_ON_ERROR( dwError );
pDNSRRRecord->RRHeader.pDomainName = pDomainName;
@@ -484,7 +484,7 @@ int32 DNSCreateNameInUseRecord( char *pszName, int32 qtype,
pDNSRRRecord->RRHeader.wRDataSize = 4;
dwError =
DNSAllocateMemory( 4,
- ( void ** ) &pDNSRRRecord->
+ ( void * ) &pDNSRRRecord->
pRData );
BAIL_ON_ERROR( dwError );
memcpy( pDNSRRRecord->pRData, &ip->s_addr, 4 );
@@ -521,7 +521,7 @@ int32 DNSCreateNameNotInUseRecord( char *pszName, int32 qtype,
dwError =
DNSAllocateMemory( sizeof( DNS_RR_RECORD ),
- ( void ** ) &pDNSRRRecord );
+ ( void * ) &pDNSRRRecord );
BAIL_ON_ERROR( dwError );
pDNSRRRecord->RRHeader.pDomainName = pDomainName;