summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-08-20 12:38:43 +0000
committerHerb Lewis <herb@samba.org>2002-08-20 12:38:43 +0000
commitc9ffc416aeee2610fdc896a9d41dac182039a5f9 (patch)
tree2a2beb1549b7c705a7c4c4f5e829d2a2fba07875
parentcd9ee27d89a5cd489efac2029c22797ec9c383ca (diff)
downloadsamba-c9ffc416aeee2610fdc896a9d41dac182039a5f9.tar.gz
samba-c9ffc416aeee2610fdc896a9d41dac182039a5f9.tar.xz
samba-c9ffc416aeee2610fdc896a9d41dac182039a5f9.zip
cannot use casts in the DLIST_xxx macros
-rw-r--r--source/include/libsmbclient.h2
-rw-r--r--source/libsmb/libsmb_cache.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/include/libsmbclient.h b/source/include/libsmbclient.h
index f2695639969..2b45709a5e8 100644
--- a/source/include/libsmbclient.h
+++ b/source/include/libsmbclient.h
@@ -333,7 +333,7 @@ typedef struct _SMBCCTX {
/** Space to store private data of the server cache.
*/
- void * server_cache;
+ struct smbc_server_cache * server_cache;
/** INTERNAL functions
* do _NOT_ touch these from your program !
diff --git a/source/libsmb/libsmb_cache.c b/source/libsmb/libsmb_cache.c
index 34b818ee748..df02cf3718f 100644
--- a/source/libsmb/libsmb_cache.c
+++ b/source/libsmb/libsmb_cache.c
@@ -89,7 +89,7 @@ static int smbc_add_cached_server(SMBCCTX * context, SMBCSRV * new,
goto failed;
}
- DLIST_ADD(((struct smbc_server_cache *)context->server_cache), srvcache);
+ DLIST_ADD((context->server_cache), srvcache);
return 0;
failed:
@@ -139,7 +139,7 @@ static int smbc_remove_cached_server(SMBCCTX * context, SMBCSRV * server)
if (server == srv->server) {
/* remove this sucker */
- DLIST_REMOVE(((struct smbc_server_cache *)context->server_cache), srv);
+ DLIST_REMOVE(context->server_cache, srv);
SAFE_FREE(srv->server_name);
SAFE_FREE(srv->share_name);
SAFE_FREE(srv->workgroup);