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:
parent
a4c8d2a2b9
commit
a7c6fb2ab9
@ -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) {
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user