From patchwork Sat Nov 11 17:45:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Erickson X-Patchwork-Id: 13453154 Received: from mohas.pair.com (mohas.pair.com [209.68.5.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8C1F6134D8 for ; Sat, 11 Nov 2023 17:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nuovations.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nuovations.com Authentication-Results: smtp.subspace.kernel.org; dkim=none Received: from mohas.pair.com (localhost [127.0.0.1]) by mohas.pair.com (Postfix) with ESMTP id 82A19730EE; Sat, 11 Nov 2023 12:45:53 -0500 (EST) Received: from [IPv6:2601:647:5a00:15c1:34e1:cabf:fe5f:4f18] (unknown [IPv6:2601:647:5a00:15c1:34e1:cabf:fe5f:4f18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mohas.pair.com (Postfix) with ESMTPSA id 26DAC73122; Sat, 11 Nov 2023 12:45:53 -0500 (EST) Precedence: bulk X-Mailing-List: connman@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: [PATCH v6 1/3] gweb: Rename 'parse_url'. From: Grant Erickson In-Reply-To: Date: Sat, 11 Nov 2023 09:45:52 -0800 Cc: Marcel Holtmann , Denis Kenzior Message-Id: References: To: connman@lists.linux.dev X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Scanned-By: mailmunge 3.11 on 209.68.5.112 This renames 'parse_url' to 'parse_request_and_proxy_urls' to more accurately reflect its role and function in processing BOTH a request URL and, optionally, a proxy URL for the specified web request session. --- gweb/gweb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index 97ff0ab21f69..b68ec123438f 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -1110,7 +1110,7 @@ static int create_transport(struct web_session *session) return 0; } -static int parse_url(struct web_session *session, +static int parse_request_and_proxy_urls(struct web_session *session, const char *url, const char *proxy) { char *scheme, *host, *port, *path; @@ -1300,7 +1300,7 @@ static guint do_request(GWeb *web, const char *url, if (!session) return 0; - if (parse_url(session, url, web->proxy) < 0) { + if (parse_request_and_proxy_urls(session, url, web->proxy) < 0) { free_session(session); return 0; }