From 948b169fa36494909d6c9c0c8f5e085561e2f66c Mon Sep 17 00:00:00 2001 From: ygrek Date: Sun, 15 Jul 2018 16:24:23 -0700 Subject: [PATCH] simplify handle_SSH_KNOWNHOSTS --- curl-helper.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/curl-helper.c b/curl-helper.c index 14dbcc3..b2ebba7 100644 --- a/curl-helper.c +++ b/curl-helper.c @@ -2847,18 +2847,7 @@ static void handle_POSTREDIR(Connection *conn, value option) } #endif -static void handle_SSH_KNOWNHOSTS(Connection *conn, value option) -{ - CAMLparam1(option); - CURLcode result = CURLE_OK; - - result = curl_easy_setopt(conn->handle, CURLOPT_SSH_KNOWNHOSTS, String_val(option)); - - if (result != CURLE_OK) - raiseError(conn, result); - - CAMLreturn0; -} +SETOPT_VAL( SSH_KNOWNHOSTS, String_val) /** ** curl_easy_setopt helper function -- 2.11.4.GIT