projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d990bd
)
Don't call curl_global_init twice
author
Kahrl
<kahrl@gmx.net>
Fri, 13 Dec 2013 17:08:53 +0000
(18:08 +0100)
committer
Kahrl
<kahrl@gmx.net>
Fri, 13 Dec 2013 17:08:53 +0000
(18:08 +0100)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index 239d68246e636bd7ae8f4534272004a70061e5b2..480e885c22f8a4dabccbec872b56d7bbcb090a0c 100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-86,10
+86,6
@@
with this program; if not, write to the Free Software Foundation, Inc.,
#include "database-leveldb.h"
#endif
-#if USE_CURL
-#include "curl/curl.h"
-#endif
-
/*
Settings.
These are loaded from the config file.
@@
-997,11
+993,6
@@
int main(int argc, char *argv[])
srand(time(0));
mysrand(time(0));
-#if USE_CURL
- CURLcode res = curl_global_init(CURL_GLOBAL_DEFAULT);
- assert(res == CURLE_OK);
-#endif
-
// Initialize HTTP fetcher
httpfetch_init(g_settings->getS32("curl_parallel_limit"));