summaryrefslogtreecommitdiff
path: root/source3/utils/net_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_lookup.c')
-rw-r--r--source3/utils/net_lookup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c
index f76b186251..a324f594a1 100644
--- a/source3/utils/net_lookup.c
+++ b/source3/utils/net_lookup.c
@@ -77,8 +77,7 @@ static void print_ldap_srvlist(char *srvlist)
static int net_lookup_ldap(int argc, const char **argv)
{
#ifdef HAVE_LDAP
- char *srvlist;
- const char *domain;
+ char *srvlist, *domain;
int rc, count;
struct in_addr *addr;
struct hostent *hostent;
@@ -126,7 +125,7 @@ static int net_lookup_dc(int argc, const char **argv)
{
struct in_addr *ip_list;
char *pdc_str = NULL;
- const char *domain=opt_target_workgroup;
+ char *domain=opt_target_workgroup;
int count, i;
if (argc > 0)
@@ -155,7 +154,7 @@ static int net_lookup_dc(int argc, const char **argv)
static int net_lookup_master(int argc, const char **argv)
{
struct in_addr master_ip;
- const char *domain=opt_target_workgroup;
+ char *domain=opt_target_workgroup;
if (argc > 0)
domain=argv[0];
@@ -215,8 +214,6 @@ static int net_lookup_kdc(int argc, const char **argv)
DEBUG(1, ("No kerberos support\n"));
return -1;
}
-
-
/* lookup hosts or IP addresses using internal samba lookup fns */
int net_lookup(int argc, const char **argv)
{