mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
now code compiles with -ansi -pedantic and has less warnings
This commit is contained in:
@@ -225,12 +225,12 @@ is_pg_dir(char *dir)
|
||||
struct stat sb;
|
||||
int r;
|
||||
|
||||
// test pgdata
|
||||
/* test pgdata */
|
||||
xsnprintf(path, buf_sz, "%s/PG_VERSION", dir);
|
||||
if (stat(path, &sb) == 0)
|
||||
return true;
|
||||
|
||||
// test tablespace dir
|
||||
/* test tablespace dir */
|
||||
sprintf(path, "ls %s/PG_*/ -I*", dir);
|
||||
r = system(path);
|
||||
if (r == 0)
|
||||
|
||||
Reference in New Issue
Block a user