diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-03-21 16:58:29 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-03-21 16:58:29 +0000 |
commit | fe3257c2615d81805c1e149ba95295c3f19a9909 (patch) | |
tree | 92735b36289a98bc22335172e23222e515b6a216 /doc | |
parent | 1e367da94efe28c67b675efb69e7963e52aee20a (diff) | |
download | gnutls-fe3257c2615d81805c1e149ba95295c3f19a9909.tar.gz |
Use size_t at appropriate places. Tiny patch by Deanna Phillips
<deanna@sdf.lonestar.org>.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/ex-crq.c | 2 | ||||
-rw-r--r-- | doc/examples/ex-pkcs12.c | 2 | ||||
-rw-r--r-- | doc/examples/ex-rfc2818.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/doc/examples/ex-crq.c b/doc/examples/ex-crq.c index 0e02791ace..8c645552ca 100644 --- a/doc/examples/ex-crq.c +++ b/doc/examples/ex-crq.c @@ -19,7 +19,7 @@ main (void) gnutls_x509_crq_t crq; gnutls_x509_privkey_t key; unsigned char buffer[10 * 1024]; - int buffer_size = sizeof (buffer); + size_t buffer_size = sizeof (buffer); gnutls_global_init (); diff --git a/doc/examples/ex-pkcs12.c b/doc/examples/ex-pkcs12.c index 2d4721eca5..185a47008f 100644 --- a/doc/examples/ex-pkcs12.c +++ b/doc/examples/ex-pkcs12.c @@ -23,7 +23,7 @@ write_pkcs12 (const gnutls_datum_t * cert, int ret, bag_index; gnutls_pkcs12_bag_t bag, key_bag; char pkcs12_struct[10 * 1024]; - int pkcs12_struct_size; + size_t pkcs12_struct_size; FILE *fd; /* A good idea might be to use gnutls_x509_privkey_get_key_id() diff --git a/doc/examples/ex-rfc2818.c b/doc/examples/ex-rfc2818.c index b5b60187f3..2147d1f249 100644 --- a/doc/examples/ex-rfc2818.c +++ b/doc/examples/ex-rfc2818.c @@ -14,7 +14,8 @@ verify_certificate (gnutls_session_t session, const char *hostname) { unsigned int status; const gnutls_datum_t *cert_list; - int cert_list_size, ret; + unsigned int cert_list_size; + int ret; gnutls_x509_crt_t cert; |