Skip to content

Commit 6e2a1a7

Browse files
committed
make compiler happy
1 parent baa88de commit 6e2a1a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/show.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ static void
937937
show_archive_json(const char *instance_name, uint32 xlog_seg_size,
938938
parray *tli_list)
939939
{
940-
int i;
940+
int i,j;
941941
PQExpBuffer buf = &show_buf;
942942
parray *actual_tli_list = parray_new();
943943

@@ -1026,7 +1026,7 @@ show_archive_json(const char *instance_name, uint32 xlog_seg_size,
10261026
{
10271027
json_add(buf, JT_BEGIN_ARRAY, &json_level);
10281028

1029-
for (int j = 0; j < parray_num(tlinfo->lost_segments); j++)
1029+
for (j = 0; j < parray_num(tlinfo->lost_segments); j++)
10301030
{
10311031
xlogInterval *lost_segments = (xlogInterval *) parray_get(tlinfo->lost_segments, j);
10321032

@@ -1056,7 +1056,7 @@ show_archive_json(const char *instance_name, uint32 xlog_seg_size,
10561056
if (tlinfo->backups != NULL)
10571057
{
10581058
json_add(buf, JT_BEGIN_ARRAY, &json_level);
1059-
for (int j = 0; j < parray_num(tlinfo->backups); j++)
1059+
for (j = 0; j < parray_num(tlinfo->backups); j++)
10601060
{
10611061
pgBackup *backup = parray_get(tlinfo->backups, j);
10621062

0 commit comments

Comments
 (0)