aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-05-21 20:57:53 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-05-22 19:27:33 +0530
commit1e1518c1470e0fd83e8c80ae493be1687618223b (patch)
treeefa94eddd450052efecc530dc8bdd17e34ae9c28 /nnn.c
parentc61f950f28f829fd444eb5b1e597ac88d16aaa6d (diff)
downloadnnn-1e1518c1470e0fd83e8c80ae493be1687618223b.tar.gz
Remove redundant variable
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c5
1 files changed, 2 insertions, 3 deletions
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;