summaryrefslogtreecommitdiff
path: root/src/raptor_www.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2015-05-02 15:03:58 -0700
committerDave Beckett <dave@dajobe.org>2015-05-02 15:03:58 -0700
commit4d00ac6ec21e7f59dba679c319aee92b478a8b15 (patch)
treef143ddfe411293762720135ea5959bb9f9799082 /src/raptor_www.c
parent9f93f30c004649813b9790ce223a7447b642f009 (diff)
downloadraptor-4d00ac6ec21e7f59dba679c319aee92b478a8b15.tar.gz
Several #ifdef fixes to avoid code after abort()
Diffstat (limited to 'src/raptor_www.c')
-rw-r--r--src/raptor_www.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/raptor_www.c b/src/raptor_www.c
index 810a2192..d724c6ec 100644
--- a/src/raptor_www.c
+++ b/src/raptor_www.c
@@ -531,23 +531,13 @@ raptor_www_set_ssl_verify_options(raptor_www* www, int verify_peer,
void*
raptor_www_get_connection(raptor_www* www)
{
-#ifdef RAPTOR_WWW_NONE
- return NULL;
-#endif
-
-#ifdef RAPTOR_WWW_LIBCURL
+#if defined(RAPTOR_WWW_LIBCURL)
return www->curl_handle;
-#endif
-
-#ifdef RAPTOR_WWW_LIBXML
+#elif defined(RAPTOR_WWW_LIBXML)
return www->ctxt;
-#endif
-
-#ifdef RAPTOR_WWW_LIBFETCH
+#else
return NULL;
#endif
-
- return NULL;
}