Module: sip-router
Branch: 4.0
Commit: 65d3fc0ac958128d99448966951de64a01f72b58
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=65d3fc0…
Author: Andrew Mortensen <admorten(a)isc.upenn.edu>
Committer: Andrew Mortensen <admorten(a)isc.upenn.edu>
Date: Mon Mar 18 10:32:45 2013 -0400
modules/sca: cast logging of time_t to long int to quiet warnings.
- Report from Olle Johansson. Latent Y2K38 problem, but that needs a
project-wide solution.
---
modules/sca/sca_subscribe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/sca/sca_subscribe.c b/modules/sca/sca_subscribe.c
index 43c902f..a2fe0ae 100644
--- a/modules/sca/sca_subscribe.c
+++ b/modules/sca/sca_subscribe.c
@@ -457,7 +457,7 @@ sca_subscription_db_delete_expired( db1_con_t *db_con )
if ( sca->db_api->delete( db_con, delete_columns, delete_ops,
delete_values, kv_count ) < 0 ) {
LM_ERR( "sca_subscription_db_delete_expired: failed to delete "
- "subscriptions expired before %ld", now );
+ "subscriptions expired before %ld", (long int)now );
return( -1 );
}
@@ -683,7 +683,7 @@ sca_subscription_print( void *value )
sca_event_name_from_type( sub->event ),
sub->event,
STR_FMT( &sub->subscriber ),
- sub->expires, sub->index,
+ (long int)sub->expires, sub->index,
STR_FMT( &sub->dialog.call_id ),
STR_FMT( &sub->dialog.from_tag ),
STR_FMT( &sub->dialog.to_tag ),