summaryrefslogtreecommitdiff
path: root/examples/libsmbclient/smbwrapper
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-02 16:21:48 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-02 16:21:48 -0500
commit8a05c0a8843c001bdb4ac31e9ea382dd89716b55 (patch)
treea082b0e806e2bac9043c55811d27e90126c170ec /examples/libsmbclient/smbwrapper
parentbf950ea7586c558205a7315419d015263f53e4e4 (diff)
downloadsamba-8a05c0a8843c001bdb4ac31e9ea382dd89716b55.tar.gz
samba-8a05c0a8843c001bdb4ac31e9ea382dd89716b55.tar.bz2
samba-8a05c0a8843c001bdb4ac31e9ea382dd89716b55.zip
Remove use of deprecated function
(This used to be commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
Diffstat (limited to 'examples/libsmbclient/smbwrapper')
-rw-r--r--examples/libsmbclient/smbwrapper/smbw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/libsmbclient/smbwrapper/smbw.c b/examples/libsmbclient/smbwrapper/smbw.c
index d3439e436d..e2e44c1f0f 100644
--- a/examples/libsmbclient/smbwrapper/smbw.c
+++ b/examples/libsmbclient/smbwrapper/smbw.c
@@ -176,9 +176,9 @@ static void do_init(StartupType startupType)
smbc_setDebug(smbw_ctx, debug_level);
smbc_setFunctionAuthData(smbw_ctx, get_auth_data_fn);
- smbc_option_set(smbw_ctx, "browse_max_lmb_count", 0);
- smbc_option_set(smbw_ctx, "urlencode_readdir_entries", 1);
- smbc_option_set(smbw_ctx, "one_share_per_server", 1);
+ smbc_setOptionBrowseMaxLmbCount(smbw_ctx, 0);
+ smbc_setOptionUrlEncodeReaddirEntries(smbw_ctx, 1);
+ smbc_setOptionOneSharePerServer(smbw_ctx, 1);
if (smbc_init_context(smbw_ctx) == NULL) {
fprintf(stderr, "Could not initialize context.\n");