Module: sip-router Branch: master Commit: 8fd917d8306ba784242e5fa60e3e5598b2d4b922 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8fd917d8...
Author: Timo Reimann timo.reimann@1und1.de Committer: Timo Reimann timo.reimann@1und1.de Date: Mon Oct 3 19:26:24 2011 +0200
acc(k): Rename time_from_string() to string2time().
---
modules_k/acc/acc_cdr.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/acc/acc_cdr.c b/modules_k/acc/acc_cdr.c index a1a40ea..9e91be1 100644 --- a/modules_k/acc/acc_cdr.c +++ b/modules_k/acc/acc_cdr.c @@ -181,7 +181,7 @@ static int write_cdr( struct dlg_cell* dialog, }
/* convert a string into a timeval struct */ -static int time_from_string( str* time_str, struct timeval* time_value) +static int string2time( str* time_str, struct timeval* time_value) { char* dot_address = NULL; int dot_position = -1; @@ -245,11 +245,11 @@ static int set_duration( struct dlg_cell* dialog) return -1; }
- if ( time_from_string( dlgb.get_dlg_var( dialog, (str*)&start_id), &start_time) < 0) { + if ( string2time( dlgb.get_dlg_var( dialog, (str*)&start_id), &start_time) < 0) { LM_ERR( "failed to extract start time\n"); return -1; } - if ( time_from_string( dlgb.get_dlg_var( dialog, (str*)&end_id), &end_time) < 0) { + if ( string2time( dlgb.get_dlg_var( dialog, (str*)&end_id), &end_time) < 0) { LM_ERR( "failed to extract end time\n"); return -1; }