projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.7.6p1
[debian/sudo]
/
memrchr.c
diff --git
a/memrchr.c
b/memrchr.c
index 35e07de5f0464ffeefbba7532359067112e5eb40..425fcb47d04b2b1d8d7eeae10dd1c16f0985be7e 100644
(file)
--- a/
memrchr.c
+++ b/
memrchr.c
@@
-14,9
+14,11
@@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
#include <config.h>
#include <config.h>
-#include <compat.h>
+
+#include <sys/types.h>
+
+#include "missing.h"
/*
* Reverse memchr()
/*
* Reverse memchr()
@@
-34,8
+36,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
;
}
}