projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo in changelog, prepare to upload
[debian/sudo]
/
memrchr.c
diff --git
a/memrchr.c
b/memrchr.c
index 7d0554df3e2879863977bb480725c2f2eb796879..35e07de5f0464ffeefbba7532359067112e5eb40 100644
(file)
--- a/
memrchr.c
+++ b/
memrchr.c
@@
-18,20
+18,13
@@
#include <config.h>
#include <compat.h>
#include <config.h>
#include <compat.h>
-#ifndef lint
-__unused static const char rcsid[] = "$Sudo: memrchr.c,v 1.1.2.3 2007/11/27 17:06:54 millert Exp $";
-#endif /* lint */
-
-#include <sys/types.h>
-#include <config.h>
-
/*
* Reverse memchr()
* Find the last occurrence of 'c' in the buffer 's' of size 'n'.
*/
/*
* Reverse memchr()
* Find the last occurrence of 'c' in the buffer 's' of size 'n'.
*/
-
VOID
*
+
void
*
memrchr(s, c, n)
memrchr(s, c, n)
- const
VOID
*s;
+ const
void
*s;
int c;
size_t n;
{
int c;
size_t n;
{
@@
-41,8
+34,8
@@
memrchr(s, c, n)
cp = (unsigned char *)s + n;
do {
if (*(--cp) == (unsigned char)c)
cp = (unsigned char *)s + n;
do {
if (*(--cp) == (unsigned char)c)
- return((
VOID
*)cp);
+ return((
void
*)cp);
} while (--n != 0);
}
} while (--n != 0);
}
- return((
VOID
*)0);
+ return((
void
*)0);
}
}