diff libfdproto/dictionary_functions.c @ 1033:000e1904074c

Fix a number of additional warnings
author Sebastien Decugis <sdecugis@freediameter.net>
date Tue, 16 Apr 2013 11:45:52 +0800
parents e63de8d76916
children 2f989d1a21e9
line wrap: on
line diff
--- a/libfdproto/dictionary_functions.c	Tue Apr 16 11:18:59 2013 +0800
+++ b/libfdproto/dictionary_functions.c	Tue Apr 16 11:45:52 2013 +0800
@@ -278,7 +278,7 @@
     char *conv;
     /* XXX: 2036 fix */
     out += DIFF_EPOCH_TO_NTP;
-    CHECK_PARAMS( (out & 0xffffffff00000000) == 0);
+    CHECK_PARAMS( (out >> 32) == 0);
 
     CHECK_MALLOC(conv=(char *)malloc(5));
     
@@ -313,7 +313,7 @@
 	
 	CHECK_PARAMS( avp_value && interpreted );
 	
-	return diameter_string_to_time_t(avp_value->os.data, avp_value->os.len, interpreted);
+	return diameter_string_to_time_t((const char *)avp_value->os.data, avp_value->os.len, interpreted);
 }
 
 char * fd_dictfct_Time_dump(union avp_value * avp_value)
"Welcome to our mercurial repository"