]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix warnings.
authorSimon Josefsson <simon@josefsson.org>
Wed, 13 May 2009 13:06:14 +0000 (15:06 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 13 May 2009 13:06:14 +0000 (15:06 +0200)
doc/examples/ex-client-tlsia.c
lib/opencdk/literal.c
lib/opencdk/misc.c
src/common.c
tests/chainverify.c
tests/tlsia.c

index 86e30dcb74a83f2199c75381945e2d3ec831dde9..9e78c9ad8d482252e4660f935acc7221a17d4f84 100644 (file)
@@ -34,7 +34,8 @@ client_avp (gnutls_session_t session, void *ptr,
 {
 
   if (last)
-    printf ("- received %d bytes AVP: `%.*s'\n", lastlen, lastlen, last);
+    printf ("- received %d bytes AVP: `%.*s'\n",
+           lastlen, (int) lastlen, last);
   else
     printf ("- new application phase\n");
 
index fc4ee4fdc3407d57ff9e08bab345e8ffc28a1a84..d01b69a6e4eb52b8c3b98b3593e92c1bc124c1d7 100644 (file)
@@ -1,5 +1,5 @@
 /* literal.c - Literal packet filters
- * Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.
+ * Copyright (C) 2002, 2003, 2008, 2009 Free Software Foundation, Inc.
  *
  * Author: Timo Schulz
  *
@@ -200,7 +200,7 @@ literal_encode (void *data, FILE * in, FILE * out)
   filelen = strlen (pfx->filename);
   cdk_pkt_new (&pkt);
   pt = pkt->pkt.literal = cdk_calloc (1, sizeof *pt + filelen);
-  pt->name = pt + sizeof(*pt);
+  pt->name = (char*) pt + sizeof(*pt);
   if (!pt)
     {
       cdk_pkt_release (pkt);
index 13e7fd5275581fdc669d4ca973edc5131a00fceb..50977bfd49a98dfda97aaba8cb21bb091a8e8472 100644 (file)
@@ -1,5 +1,5 @@
 /* misc.c
- * Copyright (C) 1998-2002, 2003, 2007, 2008 Free Software Foundation, Inc.
+ * Copyright (C) 1998-2002, 2003, 2007, 2008, 2009 Free Software Foundation, Inc.
  *
  * Author: Timo Schulz
  *
@@ -97,7 +97,7 @@ cdk_strlist_add (cdk_strlist_t * list, const char *string)
   sl = cdk_calloc (1, sizeof *sl + strlen (string) + 2);
   if (!sl)
     return NULL;
-  sl->d = sl + sizeof(*sl);
+  sl->d = (char*) sl + sizeof(*sl);
   strcpy (sl->d, string);
   sl->next = *list;
   *list = sl;
index 226fdb750b8eb2abb9f25c538529a1a40998c02c..1e726e6e6f0b9e00698512c9ee2404ec681b4799 100644 (file)
@@ -356,7 +356,8 @@ print_dh_info (gnutls_session_t session, const char *str)
          goto out;
        }
 
-      printf (" - PKCS#3 format:\n\n%.*s\n", params_data_size, params_data);
+      printf (" - PKCS#3 format:\n\n%.*s\n", (int) params_data_size,
+             params_data);
 
     out:
       gnutls_free (params_data);
index 1595b5e84b18c6106ed9d1b99f314069c487f3c1..0bdee522c59142bcc13a748b9375938313d2c507 100644 (file)
@@ -714,7 +714,7 @@ static struct
     GNUTLS_CERT_SIGNER_NOT_FOUND | GNUTLS_CERT_INVALID },
   { "cacertrsamd5 short-cut ok", cacertrsamd5, &cacertrsamd5[1],
     0, 0 },
-  { NULL, NULL, NULL, 0}
+  { NULL, NULL, NULL, 0, 0}
 };
 /* *INDENT-ON* */
 
index aac5d34b568f1c5eabdf83870c53dc858539ad97..150eb30453ca09de77da61717c1276777416073e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation
+ * Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation
  *
  * Author: Simon Josefsson
  *
@@ -59,7 +59,7 @@ client_avp (gnutls_session_t session, void *ptr,
 
   if (last)
     printf ("client: received %d bytes AVP: `%.*s'\n",
-           lastlen, lastlen, last);
+           lastlen, (int) lastlen, last);
   else
     printf ("client: new application phase\n");
 
@@ -291,7 +291,7 @@ server_avp (gnutls_session_t session, void *ptr,
 
   if (last)
     printf ("server: received %d bytes AVP: `%.*s'\n",
-           lastlen, lastlen, last);
+           lastlen, (int) lastlen, last);
 
   gnutls_ia_permute_inner_secret (session, 3, "foo");