From: Simon Ruderich Date: Mon, 2 Dec 2013 04:27:06 +0000 (+0100) Subject: Replace PF_* with AF_*. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b44ad0d8c76b0d8b7c0da824ca334c23da97453c;p=tlsproxy%2Ftlsproxy.git Replace PF_* with AF_*. PF_* is no longer specified in POSIX. --- diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 6d49253..160a236 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -150,9 +150,9 @@ int main(int argc, char **argv) { } #ifdef USE_IPV4_ONLY - server_socket = socket(PF_INET, SOCK_STREAM, 0); + server_socket = socket(AF_INET, SOCK_STREAM, 0); #else - server_socket = socket(PF_INET6, SOCK_STREAM, 0); + server_socket = socket(AF_INET6, SOCK_STREAM, 0); #endif if (server_socket < 0) { perror("socket()");