diff options
author | Michael Adam <obnox@samba.org> | 2007-12-25 02:48:45 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2007-12-25 02:48:45 +0100 |
commit | 9626fffe14ebedba7ce53441bb4f9e2288a8410d (patch) | |
tree | dbc7654efc15e8c772b6f54fd91445bf5e518119 | |
parent | 734ddacc915aa6008b7189b4c8124bc8ee6b6890 (diff) | |
download | samba-9626fffe14ebedba7ce53441bb4f9e2288a8410d.tar.gz samba-9626fffe14ebedba7ce53441bb4f9e2288a8410d.tar.bz2 samba-9626fffe14ebedba7ce53441bb4f9e2288a8410d.zip |
Use the proper boolean constants in net_conf.c
Michael
(This used to be commit 1fe4ea63b197cb7ebc054909d888d74b5ad6523c)
-rw-r--r-- | source3/utils/net_conf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 54875c49a3..a10f983025 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -360,7 +360,7 @@ done: return ret; } -/* return True iff there are nondefault globals */ +/* return true iff there are nondefault globals */ static bool globals_exist(void) { int i = 0; @@ -368,10 +368,10 @@ static bool globals_exist(void) while ((parm = lp_next_parameter(GLOBAL_SECTION_SNUM, &i, 0)) != NULL) { if (parm->type != P_SEP) { - return True; + return true; } } - return False; + return false; } /* @@ -456,7 +456,7 @@ int net_conf_import(int argc, const char **argv) int ret = -1; const char *filename = NULL; const char *servicename = NULL; - bool service_found = False; + bool service_found = false; TALLOC_CTX *ctx; struct share_iterator *shares; struct share_params *share; @@ -480,10 +480,10 @@ int net_conf_import(int argc, const char **argv) filename)); if (!lp_load(filename, - False, /* global_only */ - True, /* save_defaults */ - False, /* add_ipc */ - True)) /* initialize_globals */ + false, /* global_only */ + true, /* save_defaults */ + false, /* add_ipc */ + true)) /* initialize_globals */ { d_fprintf(stderr, "Error parsing configuration file.\n"); goto done; @@ -497,7 +497,7 @@ int net_conf_import(int argc, const char **argv) if (((servicename == NULL) && globals_exist()) || strequal(servicename, GLOBAL_NAME)) { - service_found = True; + service_found = true; if (import_process_service(ctx, &global_share) != 0) { goto done; } @@ -516,7 +516,7 @@ int net_conf_import(int argc, const char **argv) if ((servicename == NULL) || strequal(servicename, lp_servicename(share->service))) { - service_found = True; + service_found = true; if (import_process_service(ctx, share)!= 0) { goto done; } |