From 1f033febfe19d6bb0b45524a672eaf1d1373f15e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 24 May 2004 22:05:06 +0000 Subject: r861: remove the next round of unused stuff metze (This used to be commit 8f59daba0d03a2c58f7f23655153de05cbe47e81) --- source4/param/loadparm.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'source4/param') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index f000509e47..1ee1ef157e 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2994,29 +2994,7 @@ BOOL lp_snum_ok(int iService) static void lp_add_auto_services(char *str) { - char *s; - char *p; - int homes; - - if (!str) - return; - - s = strdup(str); - if (!s) - return; - - homes = lp_servicenumber(HOMES_NAME); - - for (p = strtok(s, LIST_SEP); p; p = strtok(NULL, LIST_SEP)) { - char *home = get_user_home_dir(p); - - if (lp_servicenumber(p) >= 0) - continue; - - if (home && homes >= 0) - lp_add_home(p, homes, p, home); - } - SAFE_FREE(s); + return; } /*************************************************************************** -- cgit