diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-24 17:53:28 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-24 17:53:28 +0000 |
commit | 8889685555e0ae7d5396038be9924ced2d330bd3 (patch) | |
tree | 6dc4bc817e1abfcaaa048c603e7514f456f039f2 /src/bin/pg_dump/pg_backup_custom.c | |
parent | 54a8af058e73b452278031b4959bd2fe9be0ba0c (diff) | |
download | postgresql-8889685555e0ae7d5396038be9924ced2d330bd3.tar.gz postgresql-8889685555e0ae7d5396038be9924ced2d330bd3.zip |
Suppress signed-vs-unsigned-char warnings.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_custom.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_custom.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/bin/pg_dump/pg_backup_custom.c b/src/bin/pg_dump/pg_backup_custom.c index 543cb8f2d61..115375c3430 100644 --- a/src/bin/pg_dump/pg_backup_custom.c +++ b/src/bin/pg_dump/pg_backup_custom.c @@ -19,7 +19,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.31 2005/06/21 20:45:44 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_custom.c,v 1.32 2005/09/24 17:53:27 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,8 +27,6 @@ #include "pg_backup.h" #include "pg_backup_archiver.h" -#include <errno.h> - /*-------- * Routines in the format interface *-------- @@ -548,7 +546,7 @@ _PrintData(ArchiveHandle *AH) ctx->filePos += blkLen; - zp->next_in = in; + zp->next_in = (void *) in; zp->avail_in = blkLen; #ifdef HAVE_LIBZ @@ -557,7 +555,7 @@ _PrintData(ArchiveHandle *AH) { while (zp->avail_in != 0) { - zp->next_out = out; + zp->next_out = (void *) out; zp->avail_out = zlibOutSize; res = inflate(zp, 0); if (res != Z_OK && res != Z_STREAM_END) @@ -587,7 +585,7 @@ _PrintData(ArchiveHandle *AH) zp->avail_in = 0; while (res != Z_STREAM_END) { - zp->next_out = out; + zp->next_out = (void *) out; zp->avail_out = zlibOutSize; res = inflate(zp, 0); if (res != Z_OK && res != Z_STREAM_END) @@ -891,7 +889,7 @@ _StartDataCompressor(ArchiveHandle *AH, TocEntry *te) #endif /* Just be paranoid - maybe End is called after Start, with no Write */ - zp->next_out = ctx->zlibOut; + zp->next_out = (void *) ctx->zlibOut; zp->avail_out = zlibOutSize; } @@ -937,7 +935,7 @@ _DoDeflate(ArchiveHandle *AH, lclContext *ctx, int flush) die_horribly(AH, modulename, "could not write compressed chunk\n"); ctx->filePos += zlibOutSize - zp->avail_out; } - zp->next_out = out; + zp->next_out = (void *) out; zp->avail_out = zlibOutSize; } } |