From f0853d82dcb3abdeb7ad3ec7274029db056772da Mon Sep 17 00:00:00 2001 From: Toni Gundogdu Date: Thu, 28 Apr 2011 10:07:50 +0300 Subject: [PATCH] lib/curl_wrap.c: Tidy up --- lib/curl_wrap.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/curl_wrap.c b/lib/curl_wrap.c index d43d129..274bad5 100644 --- a/lib/curl_wrap.c +++ b/lib/curl_wrap.c @@ -1,5 +1,5 @@ /* quvi - * Copyright (C) 2009,2010 Toni Gundogdu + * Copyright (C) 2009,2010,2011 Toni Gundogdu * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -33,8 +33,7 @@ static void *_realloc(void *p, const size_t size) { - if (p) - return realloc(p, size); + if (p) return realloc(p, size); return malloc(size); } @@ -77,6 +76,8 @@ static void set_opts_from_lua_script(_quvi_t q, _quvi_net_t n) set_opt(q, n, QUVI_NET_PROPERTY_OPTION_USERAGENT, CURLOPT_USERAGENT); } +/* curl_fetch */ + QUVIcode curl_fetch(_quvi_t q, _quvi_net_t n) { struct content_s content; @@ -146,6 +147,8 @@ static void restore_opts(_quvi_t q) curl_easy_setopt(q->curl, CURLOPT_HTTPGET, 1L); /* HEAD -> GET */ } +/* curl_resolve */ + QUVIcode curl_resolve(_quvi_t q, _quvi_net_t n) { struct content_s tmp; @@ -193,6 +196,8 @@ QUVIcode curl_resolve(_quvi_t q, _quvi_net_t n) return (rc); } +/* curl_verify */ + QUVIcode curl_verify(_quvi_t q, _quvi_net_t n) { struct content_s tmp; -- 2.11.4.GIT