Author: tkreuzer
Date: Wed Jan 20 23:56:01 2010
New Revision: 45165
URL:
http://svn.reactos.org/svn/reactos?rev=45165&view=rev
Log:
[CRT]
Remove unused variables. Patch by Amine Khaldi.
Modified:
trunk/reactos/lib/sdk/crt/mbstring/mbscspn.c
trunk/reactos/lib/sdk/crt/mbstring/mbsspn.c
trunk/reactos/lib/sdk/crt/mbstring/mbsspnp.c
Modified: trunk/reactos/lib/sdk/crt/mbstring/mbscspn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/mbstring/mbscs…
==============================================================================
--- trunk/reactos/lib/sdk/crt/mbstring/mbscspn.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/mbstring/mbscspn.c [iso-8859-1] Wed Jan 20 23:56:01 2010
@@ -18,12 +18,11 @@
size_t _mbscspn (const unsigned char *str1, const unsigned char *str2)
{
int c;
- unsigned char *ptr;
const unsigned char *save = str1;
while ((c = _mbsnextc (str1))) {
- if ((ptr = _mbschr (str2, c)))
+ if (_mbschr (str2, c))
break;
str1 = _mbsinc ((unsigned char *) str1);
Modified: trunk/reactos/lib/sdk/crt/mbstring/mbsspn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/mbstring/mbssp…
==============================================================================
--- trunk/reactos/lib/sdk/crt/mbstring/mbsspn.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/mbstring/mbsspn.c [iso-8859-1] Wed Jan 20 23:56:01 2010
@@ -18,12 +18,11 @@
size_t _mbsspn (const unsigned char *str1, const unsigned char *str2)
{
int c;
- unsigned char *ptr;
const unsigned char *save = str1;
while ((c = _mbsnextc (str1))) {
- if ((ptr = _mbschr (str2, c)) == 0)
+ if (_mbschr (str2, c) == 0)
break;
str1 = _mbsinc ((unsigned char *) str1);
Modified: trunk/reactos/lib/sdk/crt/mbstring/mbsspnp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/mbstring/mbssp…
==============================================================================
--- trunk/reactos/lib/sdk/crt/mbstring/mbsspnp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/mbstring/mbsspnp.c [iso-8859-1] Wed Jan 20 23:56:01 2010
@@ -7,11 +7,10 @@
unsigned char *_mbsspnp (const unsigned char *str1, const unsigned char *str2)
{
int c;
- unsigned char *ptr;
while ((c = _mbsnextc (str1))) {
- if ((ptr = _mbschr (str2, c)) == 0)
+ if (_mbschr (str2, c) == 0)
return (unsigned char *) str1;
str1 = _mbsinc ((unsigned char *) str1);