mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Run pgindent on 9.2 source tree in preparation for first 9.3
commit-fest.
This commit is contained in:
@@ -111,7 +111,7 @@ static void tarClose(ArchiveHandle *AH, TAR_MEMBER *TH);
|
||||
#ifdef __NOT_USED__
|
||||
static char *tarGets(char *buf, size_t len, TAR_MEMBER *th);
|
||||
#endif
|
||||
static int tarPrintf(ArchiveHandle *AH, TAR_MEMBER *th, const char *fmt, ...) __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 4)));
|
||||
static int tarPrintf(ArchiveHandle *AH, TAR_MEMBER *th, const char *fmt,...) __attribute__((format(PG_PRINTF_ATTRIBUTE, 3, 4)));
|
||||
|
||||
static void _tarAddFile(ArchiveHandle *AH, TAR_MEMBER *th);
|
||||
static int _tarChecksum(char *th);
|
||||
@@ -177,7 +177,7 @@ InitArchiveFmt_Tar(ArchiveHandle *AH)
|
||||
ctx->tarFH = fopen(AH->fSpec, PG_BINARY_W);
|
||||
if (ctx->tarFH == NULL)
|
||||
exit_horribly(modulename,
|
||||
"could not open TOC file \"%s\" for output: %s\n",
|
||||
"could not open TOC file \"%s\" for output: %s\n",
|
||||
AH->fSpec, strerror(errno));
|
||||
}
|
||||
else
|
||||
@@ -213,7 +213,7 @@ InitArchiveFmt_Tar(ArchiveHandle *AH)
|
||||
*/
|
||||
if (AH->compression != 0)
|
||||
exit_horribly(modulename,
|
||||
"compression is not supported by tar archive format\n");
|
||||
"compression is not supported by tar archive format\n");
|
||||
}
|
||||
else
|
||||
{ /* Read Mode */
|
||||
@@ -585,7 +585,7 @@ tarWrite(const void *buf, size_t len, TAR_MEMBER *th)
|
||||
|
||||
if (res != len)
|
||||
exit_horribly(modulename,
|
||||
"could not write to output file: %s\n", strerror(errno));
|
||||
"could not write to output file: %s\n", strerror(errno));
|
||||
|
||||
th->pos += res;
|
||||
return res;
|
||||
@@ -1230,7 +1230,7 @@ _tarGetHeader(ArchiveHandle *AH, TAR_MEMBER *th)
|
||||
snprintf(buf2, sizeof(buf2), INT64_FORMAT, (int64) ftello(ctx->tarFHpos));
|
||||
exit_horribly(modulename,
|
||||
"mismatch in actual vs. predicted file position (%s vs. %s)\n",
|
||||
buf1, buf2);
|
||||
buf1, buf2);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1245,7 +1245,7 @@ _tarGetHeader(ArchiveHandle *AH, TAR_MEMBER *th)
|
||||
if (len != 512)
|
||||
exit_horribly(modulename,
|
||||
ngettext("incomplete tar header found (%lu byte)\n",
|
||||
"incomplete tar header found (%lu bytes)\n",
|
||||
"incomplete tar header found (%lu bytes)\n",
|
||||
len),
|
||||
(unsigned long) len);
|
||||
|
||||
|
Reference in New Issue
Block a user