mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
cannot use casts in the DLIST_xxx macros
(This used to be commit c9ffc416ae
)
This commit is contained in:
parent
42045afda9
commit
a08427ea6e
@ -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 !
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user