aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-01-16 19:33:02 -0500
committerShadowNinja <shadowninja@minetest.net>2014-01-16 20:14:55 -0500
commitb11b48ec07214686bb351e9ec4857a107c26665b (patch)
treef27f747f05d2286e3dc25f25e190c7c540e628db
parent64c0e40605746955ea2c2d713810e7d1873a59b8 (diff)
downloadminetest-b11b48ec07214686bb351e9ec4857a107c26665b.tar.gz
minetest-b11b48ec07214686bb351e9ec4857a107c26665b.tar.bz2
minetest-b11b48ec07214686bb351e9ec4857a107c26665b.zip
Deindent HTTPFetchRequest::HTTPFetchRequest()
-rw-r--r--src/httpfetch.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp
index bc029ed7a..599507562 100644
--- a/src/httpfetch.cpp
+++ b/src/httpfetch.cpp
@@ -42,24 +42,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
JMutex g_httpfetch_mutex;
std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
- HTTPFetchRequest::HTTPFetchRequest()
- {
- url = "";
- caller = HTTPFETCH_DISCARD;
- request_id = 0;
- timeout = g_settings->getS32("curl_timeout");
- connect_timeout = timeout * 5;
-
- useragent = std::string("Minetest/") + minetest_version_hash + " ";
+HTTPFetchRequest::HTTPFetchRequest()
+{
+ url = "";
+ caller = HTTPFETCH_DISCARD;
+ request_id = 0;
+ timeout = g_settings->getS32("curl_timeout");
+ connect_timeout = timeout * 5;
+
+ useragent = std::string("Minetest/") + minetest_version_hash + " ";
#ifdef _WIN32
- useragent += "(Windows)";
+ useragent += "(Windows)";
#else
- struct utsname osinfo;
- uname(&osinfo);
- useragent += std::string("(") + osinfo.sysname + "/"
- + osinfo.release + " " + osinfo.machine + ")";
+ struct utsname osinfo;
+ uname(&osinfo);
+ useragent += std::string("(") + osinfo.sysname + "/"
+ + osinfo.release + " " + osinfo.machine + ")";
#endif
- }
+}
static void httpfetch_deliver_result(const HTTPFetchResult &fetchresult)