projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a0aa68
)
Fix compiler warning for non-TIOCGWINSZ case
author
Andrew Dunstan
<
[email protected]
>
Mon, 28 Sep 2015 22:42:30 +0000
(18:42 -0400)
committer
Andrew Dunstan
<
[email protected]
>
Mon, 28 Sep 2015 22:42:30 +0000
(18:42 -0400)
Backpatch to 9.5 where the error was introduced.
src/bin/psql/print.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/print.c
b/src/bin/psql/print.c
index 74298cfe441ff52f512a6366ed3a1792e4910ff9..ad4350e1fe0a7f10b37331492f9d3c3aca34235d 100644
(file)
--- 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;