1
0
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:
Miciah Dashiel Butler Masters 2006-01-28 20:21:09 +00:00 committed by Miciah Dashiel Butler Masters
parent 20f5b76bb2
commit 5bcb1309da
2 changed files with 7 additions and 4 deletions

View File

@ -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;

View File

@ -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);