[Nice] [PATCH 2/3] Remove warnings on stun/tests

Timothy Redaelli timothy at redaelli.eu
Wed Oct 12 17:08:13 PDT 2011


---
 stun/tests/test-parse.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/stun/tests/test-parse.c b/stun/tests/test-parse.c
index 524f7f2..55b2818 100644
--- a/stun/tests/test-parse.c
+++ b/stun/tests/test-parse.c
@@ -38,6 +38,7 @@
 #endif
 
 #include "stun/stunagent.h"
+#include "stun/stunhmac.h"
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -455,7 +456,7 @@ bool test_vector_validater (StunAgent *agent,
     StunMessage *message, uint8_t *username, uint16_t username_len,
     uint8_t **password, size_t *password_len, void *user_data)
 {
-  int callable = (int) user_data;
+  intptr_t callable = (intptr_t) user_data;
 
   if (!callable)
     fatal ("vector test : Validater should not be called!");
-- 
1.7.7



More information about the Nice mailing list