diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-18 17:40:25 -0700 |
commit | 30191d1a5704ad2b158386b511558972d539ce47 (patch) | |
tree | 4f46e5c4f28f672ab661aa18f45745860970a88c /source3/lib/afs.c | |
parent | 789856f63ff73fec66298e95c91c60db7bdaf14e (diff) | |
download | samba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz samba-30191d1a5704ad2b158386b511558972d539ce47.tar.bz2 samba-30191d1a5704ad2b158386b511558972d539ce47.zip |
RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
Diffstat (limited to 'source3/lib/afs.c')
-rw-r--r-- | source3/lib/afs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/afs.c b/source3/lib/afs.c index 3adab490e9..e9a7059028 100644 --- a/source3/lib/afs.c +++ b/source3/lib/afs.c @@ -72,7 +72,7 @@ static char *afs_encode_token(const char *cell, const DATA_BLOB ticket, /* Create a ClearToken and an encrypted ticket. ClearToken has not yet the * ViceId set, this should be set by the caller. */ -static BOOL afs_createtoken(const char *username, const char *cell, +static bool afs_createtoken(const char *username, const char *cell, DATA_BLOB *ticket, struct ClearToken *ct) { fstring clear_ticket; @@ -208,14 +208,14 @@ char *afs_createtoken_str(const char *username, const char *cell) For the comments "Alice" is the User to be auth'ed, and "Bob" is the AFS server. */ -BOOL afs_login(connection_struct *conn) +bool afs_login(connection_struct *conn) { extern userdom_struct current_user_info; extern struct current_user current_user; DATA_BLOB ticket; pstring afs_username; char *cell; - BOOL result; + bool result; char *ticket_str; const DOM_SID *user_sid; @@ -268,7 +268,7 @@ BOOL afs_login(connection_struct *conn) #else -BOOL afs_login(connection_struct *conn) +bool afs_login(connection_struct *conn) { return True; } |