summaryrefslogtreecommitdiff
path: root/source/param
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-10 05:22:10 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-10 05:22:10 +0000
commit745d38bfe7a989a602d14b8a04757893ae40ba8e (patch)
tree5be4ff4c1344f2d8f0e7494fa60c56a2c05556df /source/param
parent12c8028eb45d3e274e3496da1a2e4f6d18c117fd (diff)
downloadsamba-745d38bfe7a989a602d14b8a04757893ae40ba8e.tar.gz
moved username.c into lib/ so we no longer $(PASSDB_OBJ) in most
utilities
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index dcdfbd7724c..1c0b044598f 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -2315,21 +2315,20 @@ static void lp_add_auto_services(char *str)
homes = lp_servicenumber(HOMES_NAME);
printers = lp_servicenumber(PRINTERS_NAME);
- for (p=strtok(s,LIST_SEP);p;p=strtok(NULL,LIST_SEP))
- {
- char *home = get_home_dir(p);
-
- if (lp_servicenumber(p) >= 0) continue;
+ for (p=strtok(s,LIST_SEP);p;p=strtok(NULL,LIST_SEP)) {
+ char *home = get_home_dir(p);
- if (home && homes >= 0)
- {
- lp_add_home(p,homes,home);
- continue;
- }
+ if (lp_servicenumber(p) >= 0) continue;
- if (printers >= 0 && pcap_printername_ok(p,NULL))
- lp_add_printer(p,printers);
- }
+ if (home && homes >= 0) {
+ lp_add_home(p,homes,home);
+ continue;
+ }
+
+ if (printers >= 0 && pcap_printername_ok(p,NULL)) {
+ lp_add_printer(p,printers);
+ }
+ }
free(s);
}