From: Gerald Carter Date: Fri, 11 Mar 2005 10:35:41 +0000 (+0000) Subject: r5738: fix my build breakage; fix a few compiler warnings X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acbe9efeb6de33610776560978f8632cbb847821;p=thirdparty%2Fsamba.git r5738: fix my build breakage; fix a few compiler warnings --- 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); }