summaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-15 13:02:11 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-15 13:02:11 -0400
commit65f2e868b262ff4480cb10d063ccd9b689a0a77f (patch)
tree48ccb08058dcd24a41e60c6e7230198bae92d819 /src/backend/access/spgist/spgscan.c
parent131f6a9583600cc108891ff638e94633336d9f17 (diff)
Fix potentially-unportable code in contrib/adminpack.
Spelling access(2)'s second argument as "2" is just horrid. POSIX makes no promises as to the numeric values of W_OK and related macros. Even if it accidentally works as intended on every supported platform, it's still unreadable and inconsistent with adjacent code. In passing, don't spell "NULL" as "0" either. Yes, that's legal C; no, it's not project style. Back-patch, just in case the unportability is real and not theoretical. (Most likely, even if a platform had different bit assignments for access()'s modes, there'd not be an observable behavior difference here; but I'm being paranoid today.)
Diffstat (limited to 'src/backend/access/spgist/spgscan.c')
0 files changed, 0 insertions, 0 deletions