summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-03-11 10:35:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:58 -0500
commitacbe9efeb6de33610776560978f8632cbb847821 (patch)
treea61804444caa69688d456b93efd5c864514d245a /source
parenta5ea01bf15758bb2be26ba16784dc0975be783bf (diff)
downloadsamba-acbe9efeb6de33610776560978f8632cbb847821.tar.gz
samba-acbe9efeb6de33610776560978f8632cbb847821.tar.xz
samba-acbe9efeb6de33610776560978f8632cbb847821.zip
r5738: fix my build breakage; fix a few compiler warnings
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/libsmb_cache.c2
-rw-r--r--source/libsmb/libsmbclient.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/source/libsmb/libsmb_cache.c b/source/libsmb/libsmb_cache.c
index dabf5a527d5..71399f14db8 100644
--- a/source/libsmb/libsmb_cache.c
+++ b/source/libsmb/libsmb_cache.c
@@ -143,7 +143,7 @@ static SMBCSRV * smbc_get_cached_server(SMBCCTX * context, const char * server,
* a connection to the server (other than the
* attribute server connection) is cool.
*/
- if (context->options.one_share_per_server) {
+ if (context->internal->options.one_share_per_server) {
/*
* The currently connected share name
* doesn't match the requested share, so
diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c
index bc15fe7d508..c876720cfab 100644
--- a/source/libsmb/libsmbclient.c
+++ b/source/libsmb/libsmbclient.c
@@ -4370,9 +4370,7 @@ int smbc_getxattr_ctx(SMBCCTX *context,
/* Yup. */
ret = cacl_get(context, ctx, srv,
ipc_srv == NULL ? NULL : &ipc_srv->cli,
- &pol,
- (char *) path, (char *) name,
- (const char *) value, size);
+ &pol, path, name, (const char *) value, size);
if (ret < 0 && errno == 0) {
errno = smbc_errno(context, &srv->cli);
}