rename members of proxy_type enum to have a common prefix

and add a NONE member.
This commit is contained in:
rofl0r authored and rofl0r committed 2018-02-25 23:52:23 +00:00
1 parent 86632a91eb
commit 39132b9787
4 files changed
+21 -14

No files matched your search

+7 -1
View File
@@ -31,7 +31,13 @@
* Even if upstream support is not compiled into tinyproxy, this
* structure still needs to be defined.
*/
typedef enum {HTTP_TYPE, SOCKS4_TYPE, SOCKS5_TYPE} proxy_type;
typedef enum proxy_type {
PT_NONE = 0,
PT_HTTP,
PT_SOCKS4,
PT_SOCKS5
} proxy_type;
struct upstream {
struct upstream *next;
char *domain; /* optional */