diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2015-09-28 18:42:30 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2015-09-28 18:43:33 -0400 |
commit | 60fcee9e5e77dc748a9787fae34328917683b95e (patch) | |
tree | 5088a29c975fa3c71d7a2139cf6e0ed58ce03fed /src | |
parent | c4e6d506c6b028d6ccdac4e2a23b3484fba6c39e (diff) | |
download | postgresql-60fcee9e5e77dc748a9787fae34328917683b95e.tar.gz postgresql-60fcee9e5e77dc748a9787fae34328917683b95e.zip |
Fix compiler warning for non-TIOCGWINSZ case
Backpatch to 9.5 where the error was introduced.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 74298cfe441..ad4350e1fe0 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -2747,10 +2747,10 @@ PageOutput(int lines, const printTableOpt *topt) { const char *pagerprog; FILE *pagerpipe; - unsigned short int pager = topt->pager; - int min_lines = topt->pager_min_lines; #ifdef TIOCGWINSZ + unsigned short int pager = topt->pager; + int min_lines = topt->pager_min_lines; int result; struct winsize screen_size; |