From bad66abfe7c64069b76686563030ca6819fe4cc0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Aug 1998 05:22:10 +0000 Subject: moved username.c into lib/ so we no longer $(PASSDB_OBJ) in most utilities (This used to be commit 745d38bfe7a989a602d14b8a04757893ae40ba8e) --- source3/param/loadparm.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dcdfbd7724..1c0b044598 100644 --- a/source3/param/loadparm.c +++ b/source3/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); } -- cgit