diff options
author | Robert Haas | 2016-05-03 14:52:25 +0000 |
---|---|---|
committer | Robert Haas | 2016-05-03 14:52:25 +0000 |
commit | 8826d850781cb328482c8f92af2a3d93385cd63b (patch) | |
tree | 4fe1529d761610370259c5c8e3eab74b869c956b /contrib/pageinspect/heapfuncs.c | |
parent | 1e77949e67b94af4d2a350c6dac9109419932608 (diff) |
Tweak a few more things in preparation for upcoming pgindent run.
These adjustments adjust code and comments in minor ways to prevent
pgindent from mangling them. Among other things, I tried to avoid
situations where pgindent would emit "a +b" instead of "a + b", and I
tried to avoid having it break up inline comments across multiple
lines.
Diffstat (limited to 'contrib/pageinspect/heapfuncs.c')
-rw-r--r-- | contrib/pageinspect/heapfuncs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/pageinspect/heapfuncs.c b/contrib/pageinspect/heapfuncs.c index b7d75b0e75..d0c28865c3 100644 --- a/contrib/pageinspect/heapfuncs.c +++ b/contrib/pageinspect/heapfuncs.c @@ -229,11 +229,12 @@ heap_page_items(PG_FUNCTION_ARGS) { if (tuphdr->t_infomask & HEAP_HASNULL) { - int bits_len = - ((tuphdr->t_infomask2 & HEAP_NATTS_MASK) / 8 + 1) * 8; + int bits_len; + bits_len = + ((tuphdr->t_infomask2 & HEAP_NATTS_MASK) / 8 + 1) * 8; values[11] = CStringGetTextDatum( - bits_to_text(tuphdr->t_bits, bits_len)); + bits_to_text(tuphdr->t_bits, bits_len)); } else nulls[11] = true; |