Module: sip-router
Branch: admorten/sca
Commit: 4e31869e3a99c3e5995869fe9ee3e41c5417dbcc
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4e31869…
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 2e73b8a..0698464 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 ),