fix compile warning for pg_backup_tar.c - Mailing list pgsql-patches

From Andrew Dunstan
Subject fix compile warning for pg_backup_tar.c
Date
Msg-id 418FB0B9.2050109@dunslane.net
Whole thread Raw
Responses Re: fix compile warning for pg_backup_tar.c  (Peter Eisentraut <peter_e@gmx.net>)
Re: fix compile warning for pg_backup_tar.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Yet another fix for a useless compile warning. This one is slightly ugly ;-(

cheers

andrew


Index: src/bin/pg_dump/pg_backup_tar.c
===================================================================
RCS file: /home/cvsmirror/pgsql/src/bin/pg_dump/pg_backup_tar.c,v
retrieving revision 1.45
diff -c -r1.45 pg_backup_tar.c
*** src/bin/pg_dump/pg_backup_tar.c    7 Oct 2004 15:21:55 -0000    1.45
--- src/bin/pg_dump/pg_backup_tar.c    8 Nov 2004 17:26:03 -0000
***************
*** 1019,1025 ****
--- 1019,1029 ----
       */
      fseeko(tmp, 0, SEEK_END);
      th->fileLen = ftello(tmp);
+ #ifdef INT64_IS_BUSTED
      if (th->fileLen > MAX_TAR_MEMBER_FILELEN)
+ #else
+     if (((int64) th->fileLen -1) >= MAX_TAR_MEMBER_FILELEN)
+ #endif
          die_horribly(AH, modulename, "archive member too large for tar format\n");
      fseeko(tmp, 0, SEEK_SET);


pgsql-patches by date:

Previous
From: John Gray
Date:
Subject: Re: contrib/xml2: add function xml_encode_special_chars
Next
From: Tom Lane
Date:
Subject: Re: Enhanced PITR doc patch