summaryrefslogtreecommitdiffstats
path: root/source/libsmb/libsmb_path.c
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-03 18:13:33 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2008-03-03 18:13:33 -0500
commita67f96fbe9683b46c2149f7cb439d13f7f0e6ecd (patch)
tree63f21e00134124b7173c3481d857e74a12b5b490 /source/libsmb/libsmb_path.c
parent93580bce833453ba512ee436d6dfdbdcd2c53777 (diff)
downloadsamba-a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd.tar.gz
samba-a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd.tar.xz
samba-a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd.zip
Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell
Diffstat (limited to 'source/libsmb/libsmb_path.c')
-rw-r--r--source/libsmb/libsmb_path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/libsmb_path.c b/source/libsmb/libsmb_path.c
index c962f898e08..2c3a5f8866b 100644
--- a/source/libsmb/libsmb_path.c
+++ b/source/libsmb/libsmb_path.c
@@ -253,7 +253,7 @@ SMBC_parse_path(TALLOC_CTX *ctx,
*/
if (pp_workgroup != NULL) {
*pp_workgroup =
- talloc_strdup(ctx, context->config.workgroup);
+ talloc_strdup(ctx, smbc_getWorkgroup(context));
}
if (pp_options) {
@@ -297,13 +297,13 @@ SMBC_parse_path(TALLOC_CTX *ctx,
}
if (*p == '/') {
- int wl = strlen(context->config.workgroup);
+ int wl = strlen(smbc_getWorkgroup(context));
if (wl > 16) {
wl = 16;
}
- *pp_server = talloc_strdup(ctx, context->config.workgroup);
+ *pp_server = talloc_strdup(ctx, smbc_getWorkgroup(context));
if (!*pp_server) {
return -1;
}