summaryrefslogtreecommitdiffstats
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-12-24 16:03:18 +1300
committerJeremy Allison <jra@samba.org>2014-01-24 16:18:42 -0800
commit6d0b2ef47f5c412fc73e88e05244e59866b4aaff (patch)
tree1fd99d4856a0b5b4d3c6beb44d45906c6f8b76d9 /source3/param
parent63c92f7e986ed1e6e0e81f60ec9df2728836d287 (diff)
param: Rename variable used for lp_print_ok bPrint_ok
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/param')
-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 7b2fe9bc12..ebedc01842 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -217,7 +217,7 @@ static struct loadparm_service sDefault =
.bGuest_only = false,
.bAdministrative_share = false,
.bGuest_ok = false,
- .bPrint_ok = false,
+ .print_ok = false,
.bPrintNotifyBackchannel = false,
.bMap_system = false,
.bMap_hidden = false,
@@ -1746,7 +1746,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
ServicePtrs[i]->bGuest_only = false;
ServicePtrs[i]->bAdministrative_share = true;
ServicePtrs[i]->bGuest_ok = guest_ok;
- ServicePtrs[i]->bPrint_ok = false;
+ ServicePtrs[i]->print_ok = false;
ServicePtrs[i]->browseable = sDefault.browseable;
DEBUG(3, ("adding IPC service\n"));
@@ -1784,7 +1784,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService)
/* No oplocks on printer services. */
ServicePtrs[i]->bOpLocks = false;
/* Printer services must be printable. */
- ServicePtrs[i]->bPrint_ok = true;
+ ServicePtrs[i]->print_ok = true;
DEBUG(3, ("adding printer service %s\n", pszPrintername));
@@ -2337,10 +2337,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]->bPrint_ok) {
+ if (!ServicePtrs[iService]->print_ok) {
DEBUG(0, ("WARNING: [%s] service MUST be printable!\n",
ServicePtrs[iService]->szService));
- ServicePtrs[iService]->bPrint_ok = true;
+ ServicePtrs[iService]->print_ok = true;
}
/* [printers] service must also be non-browsable. */
if (ServicePtrs[iService]->browseable)