[Home]

Summary:ASTERISK-10991: [patch] Spelling mistake and extra indent in chan_sip.c
Reporter:Jon Creasy (johann8384)Labels:
Date Opened:2007-12-07 09:57:55.000-0600Date Closed:2007-12-07 10:34:46.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) slight_correction.patch
Description:Minor change to formatting.

****** ADDITIONAL INFORMATION ******

Index: channels/chan_sip.c
===================================================================
--- channels/chan_sip.c (revision 91738)
+++ channels/chan_sip.c (working copy)
@@ -605,7 +605,7 @@
static int global_srvlookup;           /*!< SRV Lookup on or off. Default is on */
static int pedanticsipchecking;                /*!< Extra checking ?  Default off */
static int autocreatepeer;             /*!< Auto creation of peers at registration? Default off. */
-static int global_match_auth_username;         /*!< Match auth username if available instead of From: Default off. */
+static int global_match_auth_username; /*!< Match auth username if available instead of From: Default off. */
static int global_relaxdtmf;           /*!< Relax DTMF */
static int global_rtptimeout;          /*!< Time out call if no RTP */
static int global_rtpholdtimeout;      /*!< Time out call if no RTP during hold */
@@ -10525,7 +10525,7 @@
                * Auth header's username instead of the 'From' name, if available.
                * Do not enable this block unless you understand the side effects (if any!)
                * Note, the search for "username" should be done in a more robust way.
-                * Note2, at the moment we chech both fields, though maybe we should
+                * Note2, at the moment we check both fields, though maybe we should
                * pick one or another depending on the request ? XXX
                */
               const char *hdr = get_header(req, "Authorization");
Comments:By: Jason Parker (jparker) 2007-12-07 10:33:57.000-0600

In the first hunk, the entire indentation is wrong.  It should be spaced out with spaces, rather than tabs.  With the way it is now, it will appear correct in some editors, if the tab is set to a certain number of spaces.

I'll commit the typo fix though.

By: Digium Subversion (svnbot) 2007-12-07 10:34:46.000-0600

Repository: asterisk
Revision: 91782

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r91782 | qwell | 2007-12-07 10:34:45 -0600 (Fri, 07 Dec 2007) | 4 lines

Fix a small typo in a comment.

Closes issue ASTERISK-10991

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=91782