diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-09 19:34:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:05:49 -0500 |
commit | 7e297ecfa4db2c7ab720a63c7764bc0e20f8058c (patch) | |
tree | 6fdb0b5a3a713c5aab9669ef021456b2063919e6 /source4/utils | |
parent | 43742e53c900733cf0eff085cb073d0c1c937530 (diff) | |
download | samba-7e297ecfa4db2c7ab720a63c7764bc0e20f8058c.tar.gz samba-7e297ecfa4db2c7ab720a63c7764bc0e20f8058c.tar.bz2 samba-7e297ecfa4db2c7ab720a63c7764bc0e20f8058c.zip |
r25047: Fix more warnings.
(This used to be commit 69de86d2d2e49439760fbc61901eb87fb7fc5d55)
Diffstat (limited to 'source4/utils')
-rw-r--r-- | source4/utils/testparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/utils/testparm.c b/source4/utils/testparm.c index 08d4ecb1a7..d884adc7f6 100644 --- a/source4/utils/testparm.c +++ b/source4/utils/testparm.c @@ -151,7 +151,7 @@ static int do_global_checks(void) ret = do_global_checks(); for (s=0;s<lp_numservices();s++) { - struct service *service = lp_servicebynum(s); + struct loadparm_service *service = lp_servicebynum(s); if (service != NULL) if (strlen(lp_servicename(lp_servicebynum(s))) > 12) { fprintf(stderr, "WARNING: You have some share names that are longer than 12 characters.\n" ); @@ -162,7 +162,7 @@ static int do_global_checks(void) } for (s=0;s<lp_numservices();s++) { - struct service *service = lp_servicebynum(s); + struct loadparm_service *service = lp_servicebynum(s); if (service != NULL) { const char **deny_list = lp_hostsdeny(service); const char **allow_list = lp_hostsallow(service); @@ -199,7 +199,7 @@ static int do_global_checks(void) getc(stdin); } if (section_name || parameter_name) { - struct service *service = NULL; + struct loadparm_service *service = NULL; if (!section_name) { section_name = GLOBAL_NAME; service = NULL; @@ -223,7 +223,7 @@ static int do_global_checks(void) if(cname && caddr){ /* this is totally ugly, a real `quick' hack */ for (s=0;s<lp_numservices();s++) { - struct service *service = lp_servicebynum(s); + struct loadparm_service *service = lp_servicebynum(s); if (service != NULL) { if (allow_access(NULL, lp_hostsdeny(NULL), lp_hostsallow(NULL), cname, caddr) && allow_access(NULL, lp_hostsdeny(service), lp_hostsallow(service), cname, caddr)) { |