1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[uri] int -> enum protocol

This commit is contained in:
Witold Filipczyk 2022-01-15 19:26:04 +01:00
parent a4c8d2a2b9
commit a7c6fb2ab9
2 changed files with 5 additions and 1 deletions

View File

@ -164,6 +164,9 @@ get_proxy_worker(struct uri *uri, char *proxy,
"FTP_PROXY", "ftp_proxy",
"ftp://", "http://");
break;
default:
break;
}
if (protocol_proxy && *protocol_proxy) {

View File

@ -2,6 +2,7 @@
#define EL__PROTOCOL_URI_H
#include "main/object.h"
#include "protocol/protocol.h"
#ifdef __cplusplus
extern "C" {
@ -36,7 +37,7 @@ struct uri {
char *string;
/* The internal type of protocol. Can _never_ be PROTOCOL_UNKNOWN. */
int protocol; /* enum protocol */
enum protocol protocol; /* enum protocol */
/* A special ELinks extension allows i.e. 'http4' or 'ftp6' protocols,
* forcing the given IP family. 0 means the IP family is not forced. */