Browse code

acc(k): Rename time_from_string() to string2time().

Timo Reimann authored on 03/10/2011 17:26:24
Showing 1 changed files
... ...
@@ -181,7 +181,7 @@ static int write_cdr( struct dlg_cell* dialog,
181 181
 }
182 182
 
183 183
 /* convert a string into a timeval struct */
184
-static int time_from_string( str* time_str, struct timeval* time_value)
184
+static int string2time( str* time_str, struct timeval* time_value)
185 185
 {    
186 186
     char* dot_address = NULL;
187 187
     int dot_position = -1;
... ...
@@ -245,11 +245,11 @@ static int set_duration( struct dlg_cell* dialog)
245 245
         return -1;
246 246
     }
247 247
 
248
-    if ( time_from_string( dlgb.get_dlg_var( dialog, (str*)&start_id), &start_time) < 0) {
248
+    if ( string2time( dlgb.get_dlg_var( dialog, (str*)&start_id), &start_time) < 0) {
249 249
         LM_ERR( "failed to extract start time\n");
250 250
         return -1;
251 251
     }
252
-    if ( time_from_string( dlgb.get_dlg_var( dialog, (str*)&end_id), &end_time) < 0) {
252
+    if ( string2time( dlgb.get_dlg_var( dialog, (str*)&end_id), &end_time) < 0) {
253 253
         LM_ERR( "failed to extract end time\n");
254 254
         return -1;
255 255
     }