mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r5953: more compiler cleanups; moved SID_LIST from smb.h to privileges.c to cleanup the name space
This commit is contained in:
parent
19a639ac46
commit
7dfafa712d
@ -281,10 +281,6 @@ typedef struct sid_info
|
||||
|
||||
} DOM_SID;
|
||||
|
||||
typedef struct sid_list {
|
||||
uint32 count;
|
||||
DOM_SID *list;
|
||||
} SID_LIST;
|
||||
|
||||
/*
|
||||
* The complete list of SIDS belonging to this user.
|
||||
|
@ -95,7 +95,12 @@ PRIVS privs[] = {
|
||||
{SE_END, "", ""}
|
||||
};
|
||||
|
||||
typedef struct priv_sid_list {
|
||||
typedef struct {
|
||||
int count;
|
||||
DOM_SID *list;
|
||||
} SID_LIST;
|
||||
|
||||
typedef struct {
|
||||
SE_PRIV privilege;
|
||||
SID_LIST sids;
|
||||
} PRIV_SID_LIST;
|
||||
|
@ -1334,7 +1334,7 @@ char *strstr_m(const char *src, const char *findstr)
|
||||
|
||||
/* for correctness */
|
||||
if (!findstr[0]) {
|
||||
return src;
|
||||
return (char*)src;
|
||||
}
|
||||
|
||||
/* Samba does single character findstr calls a *lot*. */
|
||||
|
@ -4368,7 +4368,7 @@ int smbc_getxattr_ctx(SMBCCTX *context,
|
||||
/* Yup. */
|
||||
ret = cacl_get(context, ctx, srv,
|
||||
ipc_srv == NULL ? NULL : &ipc_srv->cli,
|
||||
&pol, path, name, (const char *) value, size);
|
||||
&pol, path, name, (char *) value, size);
|
||||
if (ret < 0 && errno == 0) {
|
||||
errno = smbc_errno(context, &srv->cli);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user