1
0
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:
Michael Meskes
2010-11-02 18:12:01 +01:00
parent 8c843fff2d
commit 35d5d962e1
8 changed files with 30 additions and 18 deletions

View File

@ -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];