From 1e1518c1470e0fd83e8c80ae493be1687618223b Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 21 May 2017 20:57:53 +0530 Subject: Remove redundant variable --- nnn.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nnn.c') diff --git a/nnn.c b/nnn.c index 8f36a24..4cee5b3 100644 --- a/nnn.c +++ b/nnn.c @@ -215,10 +215,9 @@ xstrlcpy(char *dest, const char *src, size_t n) * We are only looking for '/' in this program. */ static void * -xmemrchr(const void *s, int c, size_t n) +xmemrchr(const void *s, unsigned char ch, size_t n) { - unsigned char *p; - unsigned char ch = (unsigned char)c; + static unsigned char *p; if (!s || !n) return NULL; -- cgit v1.2.3-70-g09d2