From 9e69c4fbea8dc6e9bfa6773913a68d03b2a0a85a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 6 Oct 2006 19:49:16 +0000 Subject: r19157: Fix the build (This used to be commit 3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015) --- source3/param/loadparm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/param/loadparm.c') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index b99fd8a514..8f2258bb72 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -5197,6 +5197,18 @@ struct share_params *next_share(struct share_iterator *list) return result; } +struct share_params *next_printer(struct share_iterator *list) +{ + struct share_params *result; + + while ((result = next_share(list)) != NULL) { + if (lp_print_ok(result->service)) { + break; + } + } + return result; +} + /******************************************************************* A useful volume label function. ********************************************************************/ -- cgit