mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Use enum connection_state
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e
. I hope that satisfies TCC.
This commit is contained in:
parent
20f5b76bb2
commit
5bcb1309da
@ -847,7 +847,7 @@ load_uri(struct uri *uri, struct uri *referrer, struct download *download,
|
||||
struct cache_entry *cached;
|
||||
struct connection *conn;
|
||||
struct uri *proxy_uri, *proxied_uri;
|
||||
int connection_state = S_OK;
|
||||
enum connection_state connection_state = S_OK;
|
||||
|
||||
if (download) {
|
||||
download->conn = NULL;
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "config/options.h"
|
||||
#include "main/event.h"
|
||||
#include "network/connection.h"
|
||||
#include "network/state.h"
|
||||
#include "protocol/protocol.h"
|
||||
#include "protocol/proxy.h"
|
||||
#include "protocol/uri.h"
|
||||
@ -53,7 +54,8 @@ proxy_probe_no_proxy(unsigned char *url, unsigned char *no_proxy)
|
||||
}
|
||||
|
||||
static struct uri *
|
||||
proxy_uri(struct uri *uri, unsigned char *proxy, int *connection_state)
|
||||
proxy_uri(struct uri *uri, unsigned char *proxy,
|
||||
enum connection_state *connection_state)
|
||||
{
|
||||
struct string string;
|
||||
|
||||
@ -114,7 +116,8 @@ get_protocol_proxy(unsigned char *opt,
|
||||
}
|
||||
|
||||
static struct uri *
|
||||
get_proxy_worker(struct uri *uri, unsigned char *proxy, int *connection_state)
|
||||
get_proxy_worker(struct uri *uri, unsigned char *proxy,
|
||||
enum connection_state *connection_state)
|
||||
{
|
||||
unsigned char *protocol_proxy = NULL;
|
||||
|
||||
@ -180,7 +183,7 @@ get_proxy_worker(struct uri *uri, unsigned char *proxy, int *connection_state)
|
||||
}
|
||||
|
||||
struct uri *
|
||||
get_proxy_uri(struct uri *uri, int *connection_state)
|
||||
get_proxy_uri(struct uri *uri, enum connection_state *connection_state)
|
||||
{
|
||||
if (uri->protocol == PROTOCOL_PROXY) {
|
||||
return get_composed_uri(uri, URI_BASE);
|
||||
|
Loading…
Reference in New Issue
Block a user