From 706b1811aa2c0a4bef6e28680f4643318c30cc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Wed, 26 Sep 2018 12:54:37 +0200 Subject: Make tlsproxy/buffer.c compilable by gcc 4.4.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim Rühsen --- doc/examples/tlsproxy/buffer.c | 4 ++-- doc/examples/tlsproxy/crypto-gnutls.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/examples/tlsproxy/buffer.c b/doc/examples/tlsproxy/buffer.c index 8224d793bc..cd1ff37eea 100644 --- a/doc/examples/tlsproxy/buffer.c +++ b/doc/examples/tlsproxy/buffer.c @@ -29,7 +29,7 @@ OTHER DEALINGS IN THE SOFTWARE. #include "buffer.h" -typedef struct buffer +struct buffer { char *buf; ssize_t size; @@ -37,7 +37,7 @@ typedef struct buffer ssize_t ridx; ssize_t widx; int empty; -} buffer_t; +}; /* the buffer is organised internally as follows: * diff --git a/doc/examples/tlsproxy/crypto-gnutls.c b/doc/examples/tlsproxy/crypto-gnutls.c index 14abb56620..634f417b42 100644 --- a/doc/examples/tlsproxy/crypto-gnutls.c +++ b/doc/examples/tlsproxy/crypto-gnutls.c @@ -49,7 +49,7 @@ OTHER DEALINGS IN THE SOFTWARE. #define FALSE 0 #define TRUE 1 -typedef struct tlssession +struct tlssession { gnutls_certificate_credentials_t creds; gnutls_session_t session; @@ -58,7 +58,7 @@ typedef struct tlssession int (*erroutfn) (void *opaque, const char *format, va_list ap); int debug; void *opaque; -} tlssession_t; +}; #define BUF_SIZE 65536 #define BUF_HWM ((BUF_SIZE*3)/4) -- cgit v1.2.1