summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-14 22:38:16 +0100
committerVolker Lendecke <vl@samba.org>2008-01-15 11:01:18 +0100
commit2b144283300cee03e76f405d2739bc2a4cb021b8 (patch)
tree00e2caa36634cb9ea6605bc2f41526800db961cd /source3/utils
parent57cc992e0f9a5d729ecf3c8effc862542ef7a84e (diff)
downloadsamba-2b144283300cee03e76f405d2739bc2a4cb021b8.tar.gz
samba-2b144283300cee03e76f405d2739bc2a4cb021b8.tar.bz2
samba-2b144283300cee03e76f405d2739bc2a4cb021b8.zip
Fix some warnings -- Jeremy, please check
(This used to be commit b66ac8567c16f2c35fceceba2f858d5503620309)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c11
-rw-r--r--source3/utils/net_dns.c3
2 files changed, 7 insertions, 7 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index 80f6ba9001..0a9020bcfd 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1294,14 +1294,13 @@ static bool net_derive_salting_principal( TALLOC_CTX *ctx, ADS_STRUCT *ads )
#if defined(WITH_DNS_UPDATES)
#include "dns.h"
DNS_ERROR DoDNSUpdate(char *pszServerName,
- const char *pszDomainName,
- const char *pszHostName,
- const struct in_addr *iplist, int num_addrs );
-
+ const char *pszDomainName, const char *pszHostName,
+ const struct sockaddr_storage *sslist,
+ size_t num_addrs );
static NTSTATUS net_update_dns_internal(TALLOC_CTX *ctx, ADS_STRUCT *ads,
const char *machine_name,
- const struct in_addr *addrs,
+ const struct sockaddr_storage *addrs,
int num_addrs)
{
struct dns_rr_ns *nameservers = NULL;
@@ -1390,7 +1389,7 @@ done:
static NTSTATUS net_update_dns(TALLOC_CTX *mem_ctx, ADS_STRUCT *ads)
{
int num_addrs;
- struct in_addr *iplist = NULL;
+ struct sockaddr_storage *iplist = NULL;
fstring machine_name;
NTSTATUS status;
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c
index 44a0b46e4e..fb6644d6b2 100644
--- a/source3/utils/net_dns.c
+++ b/source3/utils/net_dns.c
@@ -32,7 +32,8 @@
DNS_ERROR DoDNSUpdate(char *pszServerName,
const char *pszDomainName, const char *pszHostName,
- const struct sockaddr_storage *sslist, size_t num_addrs );
+ const struct sockaddr_storage *sslist,
+ size_t num_addrs );
/*********************************************************************
*********************************************************************/