summaryrefslogtreecommitdiffstats
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-02-02 14:53:44 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-02-03 13:27:20 +1300
commit4b403e912dbff0ac4ca7cc9e76872d314a86da37 (patch)
tree4bbced7f7564681c095f2a4484ee7efe3a7d0915 /source3/param/loadparm.c
parent4286e147a62af784f4661cdd9d668e4d86cba4f2 (diff)
downloadsamba-4b403e912dbff0ac4ca7cc9e76872d314a86da37.tar.gz
samba-4b403e912dbff0ac4ca7cc9e76872d314a86da37.tar.xz
samba-4b403e912dbff0ac4ca7cc9e76872d314a86da37.zip
loadparm: rename variable for "printable" from print_ok to printable
for consistency docs/funcstions/variables Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 019406bc4e..3e78838820 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -217,7 +217,7 @@ static struct loadparm_service sDefault =
.guest_only = false,
.administrative_share = false,
.guest_ok = false,
- .print_ok = false,
+ .printable = false,
.print_notify_backchannel = false,
.map_system = false,
.map_hidden = false,
@@ -1794,7 +1794,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
ServicePtrs[i]->guest_only = false;
ServicePtrs[i]->administrative_share = true;
ServicePtrs[i]->guest_ok = guest_ok;
- ServicePtrs[i]->print_ok = false;
+ ServicePtrs[i]->printable = false;
ServicePtrs[i]->browseable = sDefault.browseable;
DEBUG(3, ("adding IPC service\n"));
@@ -1832,7 +1832,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService)
/* No oplocks on printer services. */
ServicePtrs[i]->oplocks = false;
/* Printer services must be printable. */
- ServicePtrs[i]->print_ok = true;
+ ServicePtrs[i]->printable = true;
DEBUG(3, ("adding printer service %s\n", pszPrintername));
@@ -2360,10 +2360,10 @@ bool service_ok(int iService)
/* The [printers] entry MUST be printable. I'm all for flexibility, but */
/* I can't see why you'd want a non-printable printer service... */
if (strwicmp(ServicePtrs[iService]->szService, PRINTERS_NAME) == 0) {
- if (!ServicePtrs[iService]->print_ok) {
+ if (!ServicePtrs[iService]->printable) {
DEBUG(0, ("WARNING: [%s] service MUST be printable!\n",
ServicePtrs[iService]->szService));
- ServicePtrs[iService]->print_ok = true;
+ ServicePtrs[iService]->printable = true;
}
/* [printers] service must also be non-browsable. */
if (ServicePtrs[iService]->browseable)