summaryrefslogtreecommitdiff
blob: 39c7973ca3f24d83c98dc7590cbe3f23065fbd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -Nru sms-2.0.3.orig/lib/mr_curl/mr_curl.cc sms-2.0.3/lib/mr_curl/mr_curl.cc
--- sms-2.0.3.orig/lib/mr_curl/mr_curl.cc	2005-02-04 02:37:39.000000000 +0200
+++ sms-2.0.3/lib/mr_curl/mr_curl.cc	2006-09-24 13:48:25.725464250 +0300
@@ -4,6 +4,18 @@
 
 using namespace std;
 
+size_t Curl_write_data(const void *ptr, size_t size,
+		size_t nmemb, Curl *curl) {
+	curl->buffer->write((const char*)ptr, size * nmemb);
+	return curl->buffer->bad() ? 0 : size*nmemb;
+}
+
+size_t Curl_write_header(const void *ptr, size_t size,
+		size_t nmemb, Curl *curl) {
+	curl->headers->write((const char*)ptr, size * nmemb);
+	return curl->headers->bad() ? 0 : size*nmemb;
+}
+
 void FormParser::SetPage(const std::string &new_html)
 {
 	action = "";
@@ -428,15 +440,3 @@
 	SetOpt(CURLOPT_SSL_VERIFYHOST, 0);
 }
 
-size_t Curl_write_data(const void *ptr, size_t size,
-		size_t nmemb, Curl *curl) {
-	curl->buffer->write((const char*)ptr, size * nmemb);
-	return curl->buffer->bad() ? 0 : size*nmemb;
-}
-
-size_t Curl_write_header(const void *ptr, size_t size,
-		size_t nmemb, Curl *curl) {
-	curl->headers->write((const char*)ptr, size * nmemb);
-	return curl->headers->bad() ? 0 : size*nmemb;
-}
-