From be76af171cdb3e7465c4ef234af403f97ad79b7b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 22 May 2019 12:55:34 -0400 Subject: Initial pgindent run for v12. This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us --- src/include/common/file_utils.h | 4 ++-- src/include/common/logging.h | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/include/common') diff --git a/src/include/common/file_utils.h b/src/include/common/file_utils.h index 5cb1fd3a00b..3aefc38b10f 100644 --- a/src/include/common/file_utils.h +++ b/src/include/common/file_utils.h @@ -15,10 +15,10 @@ #ifndef FILE_UTILS_H #define FILE_UTILS_H -extern int fsync_fname(const char *fname, bool isdir); +extern int fsync_fname(const char *fname, bool isdir); extern void fsync_pgdata(const char *pg_data, int serverVersion); extern void fsync_dir_recurse(const char *dir); -extern int durable_rename(const char *oldfile, const char *newfile); +extern int durable_rename(const char *oldfile, const char *newfile); extern int fsync_parent_path(const char *fname); #endif /* FILE_UTILS_H */ diff --git a/src/include/common/logging.h b/src/include/common/logging.h index 5a3249198ae..4a28e9a3a84 100644 --- a/src/include/common/logging.h +++ b/src/include/common/logging.h @@ -63,14 +63,14 @@ extern enum pg_log_level __pg_log_level; */ #define PG_LOG_FLAG_TERSE 1 -void pg_logging_init(const char *argv0); -void pg_logging_config(int new_flags); -void pg_logging_set_level(enum pg_log_level new_level); -void pg_logging_set_pre_callback(void (*cb)(void)); -void pg_logging_set_locus_callback(void (*cb)(const char **filename, uint64 *lineno)); +void pg_logging_init(const char *argv0); +void pg_logging_config(int new_flags); +void pg_logging_set_level(enum pg_log_level new_level); +void pg_logging_set_pre_callback(void (*cb) (void)); +void pg_logging_set_locus_callback(void (*cb) (const char **filename, uint64 *lineno)); -void pg_log_generic(enum pg_log_level level, const char * pg_restrict fmt, ...) pg_attribute_printf(2, 3); -void pg_log_generic_v(enum pg_log_level level, const char * pg_restrict fmt, va_list ap) pg_attribute_printf(2, 0); +void pg_log_generic(enum pg_log_level level, const char *pg_restrict fmt,...) pg_attribute_printf(2, 3); +void pg_log_generic_v(enum pg_log_level level, const char *pg_restrict fmt, va_list ap) pg_attribute_printf(2, 0); #define pg_log_fatal(...) do { \ if (likely(__pg_log_level <= PG_LOG_FATAL)) pg_log_generic(PG_LOG_FATAL, __VA_ARGS__); \ @@ -92,4 +92,4 @@ void pg_log_generic_v(enum pg_log_level level, const char * pg_restrict fmt, va_ if (unlikely(__pg_log_level <= PG_LOG_DEBUG)) pg_log_generic(PG_LOG_DEBUG, __VA_ARGS__); \ } while(0) -#endif /* COMMON_LOGGING_H */ +#endif /* COMMON_LOGGING_H */ -- cgit v1.2.3