Browse code

Fix typo in acc_cdr

- rename dot_adress into dot_address

Sven Knoblich authored on 15/09/2011 08:22:07
Showing 1 changed files
... ...
@@ -199,7 +199,7 @@ static int write_cdr( struct dlg_cell* dialog,
199 199
 /* convert a string into a timeb struct */
200 200
 static struct timeb time_from_string( str* time_value)
201 201
 {    
202
-    char* dot_adress = NULL;
202
+    char* dot_address = NULL;
203 203
     int dot_position = -1;
204 204
     char zero_terminated_value[TIME_STR_BUFFER_SIZE];
205 205
 
... ...
@@ -220,9 +220,9 @@ static struct timeb time_from_string( str* time_value)
220 220
     memcpy( zero_terminated_value, time_value->s, time_value->len);
221 221
     zero_terminated_value[time_value->len] = '\0';
222 222
     
223
-    dot_adress = strchr( zero_terminated_value, time_separator);
223
+    dot_address = strchr( zero_terminated_value, time_separator);
224 224
     
225
-    if( !dot_adress)
225
+    if( !dot_address)
226 226
     {
227 227
         LM_ERR( "failed to find separator('%c') in '%s'!\n",
228 228
                 time_separator,
... ...
@@ -230,17 +230,17 @@ static struct timeb time_from_string( str* time_value)
230 230
         return time_error;
231 231
     }
232 232
     
233
-    dot_position = dot_adress-zero_terminated_value + 1;
233
+    dot_position = dot_address-zero_terminated_value + 1;
234 234
     
235 235
     if( dot_position >= strlen(zero_terminated_value) ||
236
-        strchr(dot_adress + 1, time_separator))
236
+        strchr(dot_address + 1, time_separator))
237 237
     {
238 238
         LM_ERR( "invalid time-string '%s'\n", zero_terminated_value);
239 239
         return time_error;
240 240
     }
241 241
     
242 242
     return (struct timeb) { atoi( zero_terminated_value),
243
-                            atoi( dot_adress + 1),
243
+                            atoi( dot_address + 1),
244 244
                             0,
245 245
                             0};
246 246
 }