You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Senaka Fernando <se...@wso2.com> on 2008/02/26 19:31:53 UTC
Re: svn commit: r631300 -
/webservices/axis2/trunk/c/util/src/string.c
Good eye Dumindu,
Gotta get those remaining ones tracked down too.
Regards,
Senaka
> Author: dumindu
> Date: Tue Feb 26 09:15:14 2008
> New Revision: 631300
>
> URL: http://svn.apache.org/viewvc?rev=631300&view=rev
> Log:
> Fixed a minor spelling error :)
>
> s/heystack/haystack
>
>
> Modified:
> webservices/axis2/trunk/c/util/src/string.c
>
> Modified: webservices/axis2/trunk/c/util/src/string.c
> URL:
> http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/string.c?rev=631300&r1=631299&r2=631300&view=diff
> ==============================================================================
> --- webservices/axis2/trunk/c/util/src/string.c (original)
> +++ webservices/axis2/trunk/c/util/src/string.c Tue Feb 26 09:15:14 2008
> @@ -571,10 +571,10 @@
>
> AXIS2_EXTERN axis2_char_t *AXIS2_CALL
> axutil_strstr(
> - const axis2_char_t * heystack,
> + const axis2_char_t * haystack,
> const axis2_char_t * needle)
> {
> - return strstr(heystack, needle);
> + return strstr(haystack, needle);
> }
>
> AXIS2_EXTERN axis2_char_t *AXIS2_CALL
> @@ -804,14 +804,14 @@
>
> AXIS2_EXTERN axis2_char_t *AXIS2_CALL
> axutil_strcasestr(
> - const axis2_char_t * heystack,
> + const axis2_char_t * haystack,
> const axis2_char_t * needle)
> {
> axis2_char_t start,
> current;
> size_t len;
>
> - if (!heystack || !needle)
> + if (!haystack || !needle)
> {
> return NULL;
> }
> @@ -823,16 +823,16 @@
> {
> do
> {
> - if (!(current = *heystack++))
> + if (!(current = *haystack++))
> {
> return NULL;
> }
> }
> while (toupper(current) != toupper(start));
> }
> - while (axutil_strncasecmp(heystack, needle, (int)len));
> + while (axutil_strncasecmp(haystack, needle, (int)len));
> /* We are sure that the difference lies within the int range */
> - heystack--;
> + haystack--;
> }
> - return (axis2_char_t *) heystack;
> + return (axis2_char_t *) haystack;
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-cvs-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org