Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67f0632

Browse files
committed
Don't use 'int' where you mean 'bool'.
1 parent51fa6fd commit67f0632

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/2014:45:35 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.181 2007/01/2021:40:25 tgl Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -121,7 +121,7 @@ static char *expand_fmt_string(const char *fmt, ErrorData *edata);
121121
staticconstchar*useful_strerror(interrnum);
122122
staticconstchar*error_severity(intelevel);
123123
staticvoidappend_with_tabs(StringInfobuf,constchar*str);
124-
staticintis_log_level_output(intelevel,intlog_min_level);
124+
staticboolis_log_level_output(intelevel,intlog_min_level);
125125

126126

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

2055-
2056-
staticintis_log_level_output(intelevel,intlog_min_level)
2055+
staticbool
2056+
is_log_level_output(intelevel,intlog_min_level)
20572057
{
20582058
/*
20592059
*Complicated because LOG is sorted out-of-order here, between

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp