diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-06 22:28:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:55 -0500 |
commit | 2151cde58014ea2e822c13d2f8a369b45dc19ca8 (patch) | |
tree | b0cd4c5b394e636232f417bcf482da87d1e18975 /source4/torture/masktest.c | |
parent | 05e7c481465e3065effaf21b43636d6605d7c313 (diff) | |
download | samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.tar.gz samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.tar.xz samba-2151cde58014ea2e822c13d2f8a369b45dc19ca8.zip |
r25554: Convert last instances of BOOL, True and False to the standard types.
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
Diffstat (limited to 'source4/torture/masktest.c')
-rw-r--r-- | source4/torture/masktest.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/torture/masktest.c b/source4/torture/masktest.c index 153cee26807..fec7657afea 100644 --- a/source4/torture/masktest.c +++ b/source4/torture/masktest.c @@ -30,8 +30,8 @@ #include "dynconfig.h" static struct cli_credentials *credentials; -static BOOL showall = False; -static BOOL old_list = False; +static bool showall = false; +static bool old_list = false; static const char *maskchars = "<>\"?*abc."; static const char *filechars = "abcdefghijklm."; static int verbose; @@ -39,12 +39,12 @@ static int die_on_error; static int NumLoops = 0; static int max_length = 20; -static BOOL reg_match_one(struct smbcli_state *cli, const char *pattern, const char *file) +static bool reg_match_one(struct smbcli_state *cli, const char *pattern, const char *file) { /* oh what a weird world this is */ - if (old_list && strcmp(pattern, "*.*") == 0) return True; + if (old_list && strcmp(pattern, "*.*") == 0) return true; - if (ISDOT(pattern)) return False; + if (ISDOT(pattern)) return false; if (ISDOTDOT(file)) file = "."; @@ -100,7 +100,7 @@ static struct { pstring long_name; pstring short_name; } last_hit; -static BOOL f_info_hit; +static bool f_info_hit; static void listfn(struct clilist_file_info *f, const char *s, void *state) { @@ -113,7 +113,7 @@ static void listfn(struct clilist_file_info *f, const char *s, void *state) } pstrcpy(last_hit.long_name, f->name); pstrcpy(last_hit.short_name, f->short_name); - f_info_hit = True; + f_info_hit = true; } static void get_real_name(struct smbcli_state *cli, @@ -126,7 +126,7 @@ static void get_real_name(struct smbcli_state *cli, mask = "\\masktest\\*"; } - f_info_hit = False; + f_info_hit = false; smbcli_list_new(cli->tree, mask, FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_DIRECTORY, @@ -350,7 +350,7 @@ static void usage(void) showall = 1; break; case 'o': - old_list = True; + old_list = true; break; default: printf("Unknown option %c (%d)\n", (char)opt, opt); |