diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-15 16:02:29 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-01-21 01:05:59 +0100 |
commit | 37c8eaecbdaebc62aa4c2e8671fb366d20f9bbe8 (patch) | |
tree | 97b62330682aa8a6912d8413088addbf52579c67 /lib/gnutls_mpi.c | |
parent | 99ad4c6b2ab76d386be76daed0c509e62d6334c7 (diff) | |
download | gnutls-37c8eaecbdaebc62aa4c2e8671fb366d20f9bbe8.tar.gz |
Fixed signed/unsigned warnings.
Dropped opaque type (replaced with uint8_t)
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r-- | lib/gnutls_mpi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c index 4df0373142..12ab1c36af 100644 --- a/lib/gnutls_mpi.c +++ b/lib/gnutls_mpi.c @@ -46,8 +46,8 @@ _gnutls_mpi_randomize (bigint_t r, unsigned int bits, int ret; int rem, i; bigint_t tmp; - char tmpbuf[512]; - opaque *buf; + uint8_t tmpbuf[512]; + uint8_t *buf; int buf_release = 0; if (size < sizeof (tmpbuf)) @@ -181,7 +181,7 @@ int _gnutls_mpi_dprint_lz (const bigint_t a, gnutls_datum_t * dest) { int ret; - opaque *buf = NULL; + uint8_t *buf = NULL; size_t bytes = 0; if (dest == NULL || a == NULL) @@ -210,7 +210,7 @@ int _gnutls_mpi_dprint (const bigint_t a, gnutls_datum_t * dest) { int ret; - opaque *buf = NULL; + uint8_t *buf = NULL; size_t bytes = 0; if (dest == NULL || a == NULL) @@ -242,7 +242,7 @@ int _gnutls_mpi_dprint_size (const bigint_t a, gnutls_datum_t * dest, size_t size) { int ret; - opaque *buf = NULL; + uint8_t *buf = NULL; size_t bytes = 0; unsigned int i; @@ -286,7 +286,7 @@ int _gnutls_x509_read_int (ASN1_TYPE node, const char *value, bigint_t * ret_mpi) { int result; - opaque *tmpstr = NULL; + uint8_t *tmpstr = NULL; int tmpstr_size; tmpstr_size = 0; @@ -330,7 +330,7 @@ int _gnutls_x509_write_int (ASN1_TYPE node, const char *value, bigint_t mpi, int lz) { - opaque *tmpstr; + uint8_t *tmpstr; size_t s_len; int result; |