diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-08-21 16:50:50 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-08-21 16:50:50 +0000 |
commit | 7e2b0abcb0da22d9a6e85ef49a5122f7ea0f255a (patch) | |
tree | afebd008c5089eecff46d739b7e3087ca476621e | |
parent | 7fe66c23a03d5d4ecf983f22cbffa2c540a75162 (diff) | |
download | gnutls-7e2b0abcb0da22d9a6e85ef49a5122f7ea0f255a.tar.gz |
minor cleanups.
-rw-r--r-- | includes/gnutls/openssl.h | 2 | ||||
-rw-r--r-- | lib/gnutls_compress_int.c | 8 | ||||
-rw-r--r-- | src/tls_test.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/includes/gnutls/openssl.h b/includes/gnutls/openssl.h index e9703c9785..7273d63ae0 100644 --- a/includes/gnutls/openssl.h +++ b/includes/gnutls/openssl.h @@ -134,7 +134,7 @@ typedef struct _SSL typedef struct { - GCRY_MD_HD handle; + gcry_md_hd_t handle; } MD_CTX; struct RSA; diff --git a/lib/gnutls_compress_int.c b/lib/gnutls_compress_int.c index 216b7f328a..894d1fd2ad 100644 --- a/lib/gnutls_compress_int.c +++ b/lib/gnutls_compress_int.c @@ -68,9 +68,7 @@ int err; ret->handle = gnutls_malloc( sizeof( z_stream)); if (ret->handle==NULL) { gnutls_assert(); - cleanup_ret: - gnutls_free(ret); - return NULL; + goto cleanup_ret; } zhandle = ret->handle; @@ -102,7 +100,9 @@ int err; if (ret->handle==NULL) { gnutls_assert(); - goto cleanup_ret; + cleanup_ret: + gnutls_free(ret); + return NULL; } } diff --git a/src/tls_test.c b/src/tls_test.c index 966825f14a..e8afa35562 100644 --- a/src/tls_test.c +++ b/src/tls_test.c @@ -198,7 +198,7 @@ int main(int argc, char **argv) CONNECT(); gnutls_init(&state, GNUTLS_CLIENT); - gnutls_transport_set_ptr(state, sd); + gnutls_transport_set_ptr(state, (gnutls_transport_ptr)sd); printf("Checking %s...", tls_tests[i].test_name); |