[sr-dev] git:master: Fix typo in acc_cdr

Sven Knoblich sven.knoblich at 1und1.de
Thu Sep 15 10:25:37 CEST 2011


Module: sip-router
Branch: master
Commit: 4e5338445645a0f4a51122b9224f801bba4107f3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4e5338445645a0f4a51122b9224f801bba4107f3

Author: Sven Knoblich <sven.knoblich at 1und1.de>
Committer: Sven Knoblich <sven.knoblich at 1und1.de>
Date:   Thu Sep 15 10:22:07 2011 +0200

Fix typo in acc_cdr

- rename dot_adress into dot_address

---

 modules_k/acc/acc_cdr.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules_k/acc/acc_cdr.c b/modules_k/acc/acc_cdr.c
index 9595718..fda436a 100644
--- a/modules_k/acc/acc_cdr.c
+++ b/modules_k/acc/acc_cdr.c
@@ -199,7 +199,7 @@ static int write_cdr( struct dlg_cell* dialog,
 /* convert a string into a timeb struct */
 static struct timeb time_from_string( str* time_value)
 {    
-    char* dot_adress = NULL;
+    char* dot_address = NULL;
     int dot_position = -1;
     char zero_terminated_value[TIME_STR_BUFFER_SIZE];
 
@@ -220,9 +220,9 @@ static struct timeb time_from_string( str* time_value)
     memcpy( zero_terminated_value, time_value->s, time_value->len);
     zero_terminated_value[time_value->len] = '\0';
     
-    dot_adress = strchr( zero_terminated_value, time_separator);
+    dot_address = strchr( zero_terminated_value, time_separator);
     
-    if( !dot_adress)
+    if( !dot_address)
     {
         LM_ERR( "failed to find separator('%c') in '%s'!\n",
                 time_separator,
@@ -230,17 +230,17 @@ static struct timeb time_from_string( str* time_value)
         return time_error;
     }
     
-    dot_position = dot_adress-zero_terminated_value + 1;
+    dot_position = dot_address-zero_terminated_value + 1;
     
     if( dot_position >= strlen(zero_terminated_value) ||
-        strchr(dot_adress + 1, time_separator))
+        strchr(dot_address + 1, time_separator))
     {
         LM_ERR( "invalid time-string '%s'\n", zero_terminated_value);
         return time_error;
     }
     
     return (struct timeb) { atoi( zero_terminated_value),
-                            atoi( dot_adress + 1),
+                            atoi( dot_address + 1),
                             0,
                             0};
 }




More information about the sr-dev mailing list