mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Some cleanup in ecpg code:
Use bool as type for booleans instead of int. Do not implicitely cast size_t to int. Make the compiler stop complaining about unused variables by adding an empty statement.
This commit is contained in:
@ -11,8 +11,8 @@
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
int ret_value = 0,
|
||||
autocommit = false,
|
||||
int ret_value = 0;
|
||||
bool autocommit = false,
|
||||
auto_create_c = false,
|
||||
system_includes = false,
|
||||
force_indicator = true,
|
||||
@ -126,9 +126,9 @@ main(int argc, char *const argv[])
|
||||
|
||||
int fnr,
|
||||
c,
|
||||
verbose = false,
|
||||
header_mode = false,
|
||||
out_option = 0;
|
||||
bool verbose = false,
|
||||
header_mode = false;
|
||||
struct _include_path *ip;
|
||||
const char *progname;
|
||||
char my_exec_path[MAXPGPATH];
|
||||
|
Reference in New Issue
Block a user