diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-09-26 12:54:37 +0200 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-09-26 12:58:33 +0200 |
commit | 706b1811aa2c0a4bef6e28680f4643318c30cc13 (patch) | |
tree | 00ee03c6bb1458614d7dfe5dd598905dbde4acb7 | |
parent | 815c17ede4dc9033a8fc34d2d66f35ff47291b84 (diff) | |
download | gnutls-706b1811aa2c0a4bef6e28680f4643318c30cc13.tar.gz |
Make tlsproxy/buffer.c compilable by gcc 4.4.7
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rw-r--r-- | doc/examples/tlsproxy/buffer.c | 4 | ||||
-rw-r--r-- | 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) |