From 30191d1a5704ad2b158386b511558972d539ce47 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 18 Oct 2007 17:40:25 -0700 Subject: 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) --- source3/lib/afs_settoken.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/lib/afs_settoken.c') diff --git a/source3/lib/afs_settoken.c b/source3/lib/afs_settoken.c index 70768a6c9a..aeef1c3520 100644 --- a/source3/lib/afs_settoken.c +++ b/source3/lib/afs_settoken.c @@ -48,7 +48,7 @@ struct ClearToken { uint32 EndTimestamp; }; -static BOOL afs_decode_token(const char *string, char **cell, +static bool afs_decode_token(const char *string, char **cell, DATA_BLOB *ticket, struct ClearToken *ct) { DATA_BLOB blob; @@ -151,7 +151,7 @@ static BOOL afs_decode_token(const char *string, char **cell, to avoid. */ -static BOOL afs_settoken(const char *cell, +static bool afs_settoken(const char *cell, const struct ClearToken *ctok, DATA_BLOB ticket) { @@ -207,11 +207,11 @@ static BOOL afs_settoken(const char *cell, return (ret == 0); } -BOOL afs_settoken_str(const char *token_string) +bool afs_settoken_str(const char *token_string) { DATA_BLOB ticket; struct ClearToken ct; - BOOL result; + bool result; char *cell; if (!afs_decode_token(token_string, &cell, &ticket, &ct)) @@ -230,7 +230,7 @@ BOOL afs_settoken_str(const char *token_string) #else -BOOL afs_settoken_str(const char *token_string) +bool afs_settoken_str(const char *token_string) { return False; } -- cgit