From 624a5c206a3f7521669a1ead85541fe1440b1112 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 10 Oct 2013 06:58:53 +0000 Subject: [PATCH] SHELL: fix strrchr warning git-svn-id: svn://kolibrios.org@4001 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/shell/system/string.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/system/shell/system/string.c b/programs/system/shell/system/string.c index e45dad4262..5fc16576e3 100644 --- a/programs/system/shell/system/string.c +++ b/programs/system/shell/system/string.c @@ -125,16 +125,16 @@ char* strchr(const char* string, int c) char* strrchr(const char* string, int c) { - int last_found; + char* last_found; while (*string) { if (*string==c) { - last_found = string; + last_found = (char*)string; } string++; } - return (char*)last_found; + return last_found; }