svn commit: samba r16905 - in trunk/source/printing: .

vlendec at samba.org vlendec at samba.org
Sun Jul 9 20:56:38 GMT 2006


Author: vlendec
Date: 2006-07-09 20:56:38 +0000 (Sun, 09 Jul 2006)
New Revision: 16905

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16905

Log:
Take snum from print_cache_flush
Modified:
   trunk/source/printing/printing.c


Changeset:
Modified: trunk/source/printing/printing.c
===================================================================
--- trunk/source/printing/printing.c	2006-07-09 20:45:44 UTC (rev 16904)
+++ trunk/source/printing/printing.c	2006-07-09 20:56:38 UTC (rev 16905)
@@ -839,10 +839,9 @@
  Check if the print queue has been updated recently enough.
 ****************************************************************************/
 
-static void print_cache_flush(int snum)
+static void print_cache_flush(const char *sharename)
 {
 	fstring key;
-	const char *sharename = lp_const_servicename(snum);
 	struct tdb_print_db *pdb = get_print_db_byname(sharename);
 
 	if (!pdb)
@@ -2073,7 +2072,7 @@
 	}
 
 	/* force update the database */
-	print_cache_flush(snum);
+	print_cache_flush(lp_const_servicename(snum));
 
 	/* Send a printer notify message */
 
@@ -2131,7 +2130,7 @@
 	}
 
 	/* force update the database */
-	print_cache_flush(snum);
+	print_cache_flush(lp_const_servicename(snum));
 
 	/* Send a printer notify message */
 
@@ -2751,7 +2750,7 @@
 	}
 
 	/* force update the database */
-	print_cache_flush(snum);
+	print_cache_flush(lp_const_servicename(snum));
 
 	/* Send a printer notify message */
 



More information about the samba-cvs mailing list