1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS

metze
(cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)
(This used to be commit e7dcbf56aef836e1b4be70b21064f65338221b5a)
This commit is contained in:
Stefan Metzmacher 2008-05-23 13:59:53 +02:00
parent 7abda3fb9d
commit 532833de24
3 changed files with 5 additions and 5 deletions

View File

@ -117,7 +117,7 @@ static wbcErr wbc_create_auth_info(TALLOC_CTX *mem_ctx,
#define _SID_COMPOSE(s, d, r, a) { \
(s).sid = d; \
if ((s).sid.num_auths < MAXSUBAUTHS) { \
if ((s).sid.num_auths < WBC_MAXSUBAUTHS) { \
(s).sid.sub_auths[(s).sid.num_auths++] = r; \
} else { \
wbc_status = WBC_ERR_INVALID_SID; \

View File

@ -139,7 +139,7 @@ wbcErr wbcStringToSid(const char *str,
p = q +1;
sid->num_auths = 0;
while (sid->num_auths < MAXSUBAUTHS) {
while (sid->num_auths < WBC_MAXSUBAUTHS) {
if ((x=(uint32_t)strtoul(p, &q, 10)) == 0)
break;
sid->sub_auths[sid->num_auths++] = x;

View File

@ -70,8 +70,8 @@ struct wbcInterfaceDetails {
* Data types used by the Winbind Client API
*/
#ifndef MAXSUBAUTHS
#define MAXSUBAUTHS 15 /* max sub authorities in a SID */
#ifndef WBC_MAXSUBAUTHS
#define WBC_MAXSUBAUTHS 15 /* max sub authorities in a SID */
#endif
/**
@ -83,7 +83,7 @@ struct wbcDomainSid {
uint8_t sid_rev_num;
uint8_t num_auths;
uint8_t id_auth[6];
uint32_t sub_auths[MAXSUBAUTHS];
uint32_t sub_auths[WBC_MAXSUBAUTHS];
};
/**