]> granicus.if.org Git - sudo/commitdiff
Remove dependecy on NULL
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 19 Jun 2007 21:00:30 +0000 (21:00 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 19 Jun 2007 21:00:30 +0000 (21:00 +0000)
memrchr.c

index f0f61e4e4ce6be712d342a5c2a457083c4600fb0..205d932d8131ba6a7ea47e771731028a27c889d1 100644 (file)
--- a/memrchr.c
+++ b/memrchr.c
@@ -41,8 +41,8 @@ memrchr(s, c, n)
        cp = (unsigned char *)s + n;
        do {
            if (*(--cp) == (unsigned char)c)
-               return((void *)cp);
+               return((VOID *)cp);
        } while (--n != 0);
     }
-    return(NULL);
+    return((VOID *)0);
 }