From: Simon Ruderich Date: Sun, 28 Jul 2013 02:44:14 +0000 (+0200) Subject: Sort #includes and remove unnecessary comments. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=62bffb28964ae13d193414f747a25703a2583f77;hp=493ba2dba6ffb61eaf9e8dfff5558d4821948f5c;p=tlsproxy%2Ftlsproxy.git Sort #includes and remove unnecessary comments. --- diff --git a/src/connection.c b/src/connection.c index 3f361a0..36e0304 100644 --- a/src/connection.c +++ b/src/connection.c @@ -21,14 +21,10 @@ #include "connection.h" #include "verify.h" -/* close() */ -#include -/* getaddrinfo() */ +#include #include -/* poll() */ #include -/* errno */ -#include +#include /* Maximum length of a HTTP request line. Longer request lines are aborted diff --git a/src/log.c b/src/log.c index e00a08d..02cadd2 100644 --- a/src/log.c +++ b/src/log.c @@ -20,10 +20,8 @@ #include "tlsproxy.h" #include "log.h" -/* va_*() */ -#include -/* pthread_self() */ #include +#include void log_message(int level, const char *file, int line, const char *format, ...) { diff --git a/src/sem.c b/src/sem.c index c184453..0df93c6 100644 --- a/src/sem.c +++ b/src/sem.c @@ -19,8 +19,8 @@ #include "sem.h" -#include #include +#include struct SEM { diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 1e8642f..401553f 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -23,19 +23,13 @@ #include "sem.h" #include "connection.h" -/* socket(), bind(), accept(), listen() */ -#include -#include -/* close() */ -#include -/* htons() */ #include -/* sigaction() */ -#include -/* errno */ #include -/* pthread_*() */ #include +#include +#include +#include +#include /* For GnuTLS. */ #include diff --git a/src/verify.c b/src/verify.c index 2b49f1d..487ad2e 100644 --- a/src/verify.c +++ b/src/verify.c @@ -20,9 +20,8 @@ #include "tlsproxy.h" #include "verify.h" -/* errno */ #include -/* gnutls_x509_*() */ + #include diff --git a/tests/client.c b/tests/client.c index 5c230cf..9bf13b5 100644 --- a/tests/client.c +++ b/tests/client.c @@ -19,22 +19,16 @@ #include -#include +#include +#include +#include #include +#include #include -/* socket(), connect() */ -#include #include -/* close() */ +#include #include -/* getaddrinfo() */ -#include -/* htons() */ -#include -/* errno */ -#include -/* GnuTLS */ #include #include