server: remove duplicate snum_is_shared_printer()
authorDavid Disseldorp <ddiss@samba.org>
Tue, 5 Aug 2014 16:45:24 +0000 (18:45 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 8 Aug 2014 12:10:39 +0000 (14:10 +0200)
Only keep a single definition in server_reload.c

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10652

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/smbd/proto.h
source3/smbd/server_reload.c

index b8cae89e9768c5f77ab9bbb8ef1cde8ef0fd3ff1..391bb01d3ec585b3864e6783e8f0e8597c3705a7 100644 (file)
@@ -4289,15 +4289,6 @@ static WERROR construct_printer_info8(TALLOC_CTX *mem_ctx,
        return WERR_OK;
 }
 
-
-/********************************************************************
-********************************************************************/
-
-static bool snum_is_shared_printer(int snum)
-{
-       return (lp_browseable(snum) && lp_snum_ok(snum) && lp_printable(snum));
-}
-
 /********************************************************************
  Spoolss_enumprinters.
 ********************************************************************/
index 22cd921694b01b5a800ed88a4015acdac03faf3e..3905a742a91a6de56f9e794d0d99a0fbf6359809 100644 (file)
@@ -955,6 +955,7 @@ const struct security_token *sec_ctx_active_token(void);
 /* The following definitions come from smbd/server.c  */
 
 struct memcache *smbd_memcache(void);
+bool snum_is_shared_printer(int snum);
 void delete_and_reload_printers(struct tevent_context *ev,
                                struct messaging_context *msg_ctx);
 bool reload_services(struct smbd_server_connection *sconn,
index 1477f00c964c45fbe69347be2df9471aa2d5aed1..efcf294553bf97ea51528bb37e39dda075e410e8 100644 (file)
@@ -38,7 +38,7 @@
  */
 static time_t reload_last_pcap_time = 0;
 
-static bool snum_is_shared_printer(int snum)
+bool snum_is_shared_printer(int snum)
 {
        return (lp_browseable(snum) && lp_snum_ok(snum) && lp_printable(snum));
 }