curl_easy_setopt() takes exactly three arguments; ok ajacoutot@

This commit is contained in:
naddy 2008-05-15 19:34:19 +00:00
parent 600b4f3220
commit a7c2cc6514
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2007/12/12 10:42:07 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.6 2008/05/15 19:34:19 naddy Exp $
COMMENT= 3D earth viewer with GPS support
DISTNAME= gaia-0.1.2
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= x11 geo
EXTRACT_SUFX= .tar.bz2

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_wwfetch_wwfetch_http_c,v 1.1 2008/05/15 19:34:20 naddy Exp $
--- lib/wwfetch/wwfetch_http.c.orig Thu May 15 19:12:32 2008
+++ lib/wwfetch/wwfetch_http.c Thu May 15 19:17:28 2008
@@ -96,7 +96,7 @@ wwfetch_error wwfetch_do_http_request(wwfetch *handle,
if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_HTTPHEADER, handle->curlheaders)) != CURLE_OK)
return WWFETCH_CURL_ERROR;
- if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_USERAGENT, "gaia/%s", GAIA_VERSION)) != CURLE_OK)
+ if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_USERAGENT, "gaia/" GAIA_VERSION)) != CURLE_OK)
return WWFETCH_CURL_ERROR;
if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_URL, url)) != CURLE_OK)