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/web/cgi.c | |
parent | 789856f63ff73fec66298e95c91c60db7bdaf14e (diff) | |
download | samba-30191d1a5704ad2b158386b511558972d539ce47.tar.gz samba-30191d1a5704ad2b158386b511558972d539ce47.tar.xz 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/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 0e362ea2454..6a8688b6376 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -42,8 +42,8 @@ static char *query_string; static const char *baseurl; static char *pathinfo; static char *C_user; -static BOOL inetd_server; -static BOOL got_request; +static bool inetd_server; +static bool got_request; static char *grab_line(FILE *f, int *cl) { @@ -328,7 +328,7 @@ static void cgi_web_auth(void) /*************************************************************************** handle a http authentication line ***************************************************************************/ -static BOOL cgi_handle_authorization(char *line) +static bool cgi_handle_authorization(char *line) { char *p; fstring user, user_pass; @@ -399,7 +399,7 @@ err: /*************************************************************************** is this root? ***************************************************************************/ -BOOL am_root(void) +bool am_root(void) { if (geteuid() == 0) { return( True); @@ -509,7 +509,7 @@ static void cgi_download(char *file) **/ void cgi_setup(const char *rootdir, int auth_required) { - BOOL authenticated = False; + bool authenticated = False; char line[1024]; char *url=NULL; char *p; @@ -656,7 +656,7 @@ const char *cgi_remote_addr(void) /*************************************************************************** return True if the request was a POST ***************************************************************************/ -BOOL cgi_waspost(void) +bool cgi_waspost(void) { if (inetd_server) { return request_post; |