From 74cd1f3fa77635c5da3ad3ac61c0a76c683789fb Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 20 Jan 2010 22:56:01 +0000 Subject: [PATCH] [CRT] Remove unused variables. Patch by Amine Khaldi. svn path=/trunk/; revision=45165 --- reactos/lib/sdk/crt/mbstring/mbscspn.c | 3 +-- reactos/lib/sdk/crt/mbstring/mbsspn.c | 3 +-- reactos/lib/sdk/crt/mbstring/mbsspnp.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/reactos/lib/sdk/crt/mbstring/mbscspn.c b/reactos/lib/sdk/crt/mbstring/mbscspn.c index 02d69d68388..e6be7e9ea64 100644 --- a/reactos/lib/sdk/crt/mbstring/mbscspn.c +++ b/reactos/lib/sdk/crt/mbstring/mbscspn.c @@ -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); diff --git a/reactos/lib/sdk/crt/mbstring/mbsspn.c b/reactos/lib/sdk/crt/mbstring/mbsspn.c index 72ee3e2a41b..8722c97c2de 100644 --- a/reactos/lib/sdk/crt/mbstring/mbsspn.c +++ b/reactos/lib/sdk/crt/mbstring/mbsspn.c @@ -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); diff --git a/reactos/lib/sdk/crt/mbstring/mbsspnp.c b/reactos/lib/sdk/crt/mbstring/mbsspnp.c index 36b903d1e4f..9121cb0edb4 100644 --- a/reactos/lib/sdk/crt/mbstring/mbsspnp.c +++ b/reactos/lib/sdk/crt/mbstring/mbsspnp.c @@ -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);