1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/mmr/files/patch-iobottle.cpp
Christian Weisgerber 940d110922 C++ fixes for GCC3.
PR:		44460
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
2002-10-26 00:27:50 +00:00

26 lines
606 B
C++

--- iobottle.cpp.orig Fri Aug 6 05:39:19 1999
+++ iobottle.cpp Fri Oct 25 13:58:58 2002
@@ -1,3 +1,4 @@
+#include <string.h>
extern "C" {
#include <stdlib.h>
@@ -97,7 +98,7 @@
}
/* If buf[len-1] is a null, then a newline should be written */
size_t
-IObottle:: writeline(char *buf, size_t len = 0) {
+IObottle:: writeline(char *buf, size_t len) {
int lenwritten = 0;
if ( fputs(buf, wfp) >= 0 )
@@ -134,7 +135,7 @@
return(0);
}
int
-IObottle:: set_time(time_t actime, time_t modtime = 0) {
+IObottle:: set_time(time_t actime, time_t modtime) {
struct stat sb;
struct utimbuf ub;