diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-04-18 16:55:34 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-04-18 16:55:34 +0000 |
commit | d7607ecbd4a36f0e549946d04f8c225e72712b52 (patch) | |
tree | 4ac77cae6fdeeb4cb0c75bd2d4f9a965fe6d4d07 /mail/cone/files/patch-fileno-casts | |
parent | - Update to version 0.2.2 (diff) |
- Update to 0.58
PR: ports/65684
Submitted by: Matthias Andree <matthias.andree@gmx.de>
Notes
Notes:
svn path=/head/; revision=107437
Diffstat (limited to 'mail/cone/files/patch-fileno-casts')
-rw-r--r-- | mail/cone/files/patch-fileno-casts | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mail/cone/files/patch-fileno-casts b/mail/cone/files/patch-fileno-casts new file mode 100644 index 000000000000..489efd0a3a1a --- /dev/null +++ b/mail/cone/files/patch-fileno-casts @@ -0,0 +1,49 @@ +--- libmail/mbox.C~ Tue Apr 6 04:06:36 2004 ++++ libmail/mbox.C Sat Apr 17 22:05:27 2004 +@@ -1243,7 +1243,7 @@ + // Remember how big the saveFile was, + // originally. + +- if (fstat(fileno(*saveFile), &stat_buf) < 0) ++ if (fstat(fileno(static_cast<FILE *>(*saveFile)), &stat_buf) < 0) + { + return false; + } +@@ -1280,7 +1280,7 @@ + { + // Potential short cut. + +- if (fstat(fileno(scanFile), &stat_buf) < 0) ++ if (fstat(fileno(static_cast<FILE *>(scanFile)), &stat_buf) < 0) + { + return false; + } +--- libmail/mboxadd.C~ Wed Aug 27 04:37:22 2003 ++++ libmail/mboxadd.C Sat Apr 17 22:06:10 2004 +@@ -99,13 +99,13 @@ + { + struct stat st; + +- mail::mbox::sighandler updating(fileno(file)); ++ mail::mbox::sighandler updating(fileno(static_cast<FILE *>(file))); + + try { + + // Make sure the mboxAccount file ends with a trailing newline + +- if (fstat(fileno(file), &st) < 0) ++ if (fstat(fileno(static_cast<FILE *>(file)), &st) < 0) + { + fail(strerror(errno)); + return; +--- libmail/mboxgetmessage.C~ Wed Aug 27 04:37:22 2003 ++++ libmail/mboxgetmessage.C Sat Apr 17 22:06:42 2004 +@@ -81,7 +81,7 @@ + { + struct stat stat_buf; + +- if (fstat(fileno(file), &stat_buf) < 0) ++ if (fstat(fileno(static_cast<FILE *>(file)), &stat_buf) < 0) + endingPos=stat_buf.st_size; + } + else |