Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 67f0632

Browse files
committed
Don't use 'int' where you mean 'bool'.
1 parent 51fa6fd commit 67f0632

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/utils/error/elog.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
*
4444
* IDENTIFICATION
45-
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.180 2007/01/20 14:45:35 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.181 2007/01/20 21:40:25 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -121,7 +121,7 @@ static char *expand_fmt_string(const char *fmt, ErrorData *edata);
121121
static const char *useful_strerror(int errnum);
122122
static const char *error_severity(int elevel);
123123
static void append_with_tabs(StringInfo buf, const char *str);
124-
static int is_log_level_output(int elevel, int log_min_level);
124+
static bool is_log_level_output(int elevel, int log_min_level);
125125

126126

127127
/*
@@ -2052,8 +2052,8 @@ write_stderr(const char *fmt,...)
20522052
va_end(ap);
20532053
}
20542054

2055-
2056-
static int is_log_level_output(int elevel, int log_min_level)
2055+
static bool
2056+
is_log_level_output(int elevel, int log_min_level)
20572057
{
20582058
/*
20592059
* Complicated because LOG is sorted out-of-order here, between

0 commit comments

Comments
 (0)