cannot use casts in the DLIST_xxx macros
authorHerb Lewis <herb@samba.org>
Tue, 20 Aug 2002 12:38:43 +0000 (12:38 +0000)
committerHerb Lewis <herb@samba.org>
Tue, 20 Aug 2002 12:38:43 +0000 (12:38 +0000)
(This used to be commit c9ffc416aeee2610fdc896a9d41dac182039a5f9)

source3/include/libsmbclient.h
source3/libsmb/libsmb_cache.c

index f26956399693f5e3df329ae0a3dc61b298cd0859..2b45709a5e8583440d6b1f6477531d5b835f9b09 100644 (file)
@@ -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 !
index 34b818ee7480c631f53d8264641d13e42f20a819..df02cf3718f464471c68929097a76136111821de 100644 (file)
@@ -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);