curl_easy_setopt() takes exactly three arguments; ok ajacoutot@
This commit is contained in:
parent
600b4f3220
commit
a7c2cc6514
@ -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
|
||||
|
12
x11/gaia/patches/patch-lib_wwfetch_wwfetch_http_c
Normal file
12
x11/gaia/patches/patch-lib_wwfetch_wwfetch_http_c
Normal 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)
|
Loading…
Reference in New Issue
Block a user