openbsd-ports/www/bk2site/patches/patch-iwebstream_C

24 lines
1.1 KiB
Plaintext

$OpenBSD: patch-iwebstream_C,v 1.1 2002/10/17 11:25:39 naddy Exp $
--- iwebstream.C.orig Wed Oct 16 23:57:13 2002
+++ iwebstream.C Wed Oct 16 23:58:06 2002
@@ -33,7 +33,7 @@
//#define DEBUG_TIMEOUT
// The constructor.
-iwebstream::iwebstream(string url, int timeout = 30) : defaultTimeout(timeout), data(""), position(0) {
+iwebstream::iwebstream(string url, int timeout) : defaultTimeout(timeout), data(""), position(0) {
string origurl = url;
string method;
string host;
@@ -424,8 +424,8 @@ bool iwebstream::findAndPass(const strin
// Case is ignored in comparisions.
// If begin is not found, return "". Move position to point to char after end;
// If end == "" then just find begin and place position just after it
-string iwebstream::findTag(const string & begin, const string & end, const string & after = "",
- const string & before = "") {
+string iwebstream::findTag(const string & begin, const string & end, const string & after,
+ const string & before) {
// cout << "findTag begin=" << begin << "=" << endl
// << "end=" << end << "=" << endl
// << "after=" << after << "=" << endl