diff options
author | Michael Adam <obnox@samba.org> | 2014-02-02 14:44:05 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-02-03 13:27:10 +1300 |
commit | 0cdb0f899809b624b5b5b234acdf974ac14a8d13 (patch) | |
tree | ddd8120fcccbe2eb194946a811935f44628cca09 /source3/param/loadparm.c | |
parent | 16c87623309db3b281a6ccd54fc680d351965eb1 (diff) | |
download | samba-0cdb0f899809b624b5b5b234acdf974ac14a8d13.tar.gz samba-0cdb0f899809b624b5b5b234acdf974ac14a8d13.tar.xz samba-0cdb0f899809b624b5b5b234acdf974ac14a8d13.zip |
loadparm: rename variable for "read only" from readonly to read_only
for consistency docs/functions/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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index d9690c8841..019406bc4e 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -213,7 +213,7 @@ static struct loadparm_service sDefault = .browseable = true, .access_based_share_enum = false, .bAvailable = true, - .readonly = true, + .read_only = true, .guest_only = false, .administrative_share = false, .guest_ok = false, @@ -1790,7 +1790,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok) string_set(&ServicePtrs[i]->fstype, "IPC"); ServicePtrs[i]->max_connections = 0; ServicePtrs[i]->bAvailable = true; - ServicePtrs[i]->readonly = true; + ServicePtrs[i]->read_only = true; ServicePtrs[i]->guest_only = false; ServicePtrs[i]->administrative_share = true; ServicePtrs[i]->guest_ok = guest_ok; @@ -1828,7 +1828,7 @@ bool lp_add_printer(const char *pszPrintername, int iDefaultService) ServicePtrs[i]->browseable = sDefault.browseable; /* Printers cannot be read_only. */ - ServicePtrs[i]->readonly = false; + ServicePtrs[i]->read_only = false; /* No oplocks on printer services. */ ServicePtrs[i]->oplocks = false; /* Printer services must be printable. */ @@ -4255,7 +4255,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i added_service = true; /* Read only is controlled by usershare ACL below. */ - ServicePtrs[iService]->readonly = false; + ServicePtrs[iService]->read_only = false; } /* Write the ACL of the new/modified share. */ |