postgresql/src
Peter Eisentraut d923125b77 Fix incorrect uses of gzFile
gzFile is already a pointer, so code like

gzFile *handle = gzopen(...)

is wrong.

This used to pass silently because gzFile used to be defined as void*,
and you can assign a void* to a void**.  But somewhere between zlib
versions 1.2.3.4 and 1.2.6, the definition of gzFile was changed to
struct gzFile_s *, and with that new definition this usage causes
compiler warnings.

So remove all those extra pointer decorations.

There is a related issue in pg_backup_archiver.h, where

FILE       *FH;             /* General purpose file handle */

is used throughout pg_dump as sometimes a real FILE* and sometimes a
gzFile handle, which also causes warnings now.  This is not yet fixed
here, because it might need more code restructuring.
2012-03-02 22:30:01 +02:00
..
backend Allow child-relation entries to be made in ec_has_const EquivalenceClasses. 2012-03-02 14:29:07 -05:00
bin Fix incorrect uses of gzFile 2012-03-02 22:30:01 +02:00
include Add COLLATION FOR expression 2012-03-02 21:12:16 +02:00
interfaces ecpg: Clean up some const usage 2012-03-02 20:51:29 +02:00
makefiles Add pg_upgrade test suite 2011-11-27 22:42:32 +02:00
pl Fix I/O-conversion-related memory leaks in plpgsql. 2012-02-11 18:06:24 -05:00
port Move CRC tables to libpgport, and provide them in a separate include file. 2012-02-28 19:53:39 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Re-add "make check" target in src/test/isolation/Makefile 2012-03-02 22:11:57 +02:00
timezone Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
tools Fix MSVC builds for previous patch's addition of a src/port file. 2012-02-29 00:24:01 -05:00
tutorial Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in ecpg: Improve test building 2012-02-02 20:33:29 +02:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:23 -04:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls-global.mk Sort compendium lists for msgmerge 2011-12-27 20:22:51 +02:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00