Remove more YES/NO usage.

This commit is contained in:
Elizabeth Myers 2016-03-23 08:43:28 -05:00
parent dfe18bf0a8
commit bd43a44469
3 changed files with 6 additions and 6 deletions

View file

@ -131,7 +131,7 @@ struct oper_conf
extern struct remote_conf *make_remote_conf(void);
extern void free_remote_conf(struct remote_conf *);
extern int find_shared_conf(const char *username, const char *host,
extern bool find_shared_conf(const char *username, const char *host,
const char *server, int flags);
extern void propagate_generic(struct Client *source_p, const char *command,
const char *target, int cap, const char *format, ...);

View file

@ -37,11 +37,11 @@ extern char **myargv;
void
restart(const char *mesg)
{
static int was_here = NO; /* redundant due to restarting flag below */
static bool was_here = false; /* redundant due to restarting flag below */
if(was_here)
abort();
was_here = YES;
was_here = true;
ilog(L_MAIN, "Restarting Server because: %s", mesg);

View file

@ -174,7 +174,7 @@ free_remote_conf(struct remote_conf *remote_p)
rb_free(remote_p);
}
int
bool
find_shared_conf(const char *username, const char *host,
const char *server, int flags)
{
@ -190,9 +190,9 @@ find_shared_conf(const char *username, const char *host,
match(shared_p->server, server))
{
if(shared_p->flags & flags)
return YES;
return true;
else
return NO;
return false;
}
}