blob: 7f7052322b0b75d90be8d437b9011662746a64ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Clang16 will not allow implicit function declarations and implicit integers etc.
This patch overhauls the source code for modern C.
Bug: https://bugs.gentoo.org/875029
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
--- a/strnstr.c
+++ b/strnstr.c
@@ -46,10 +46,7 @@ static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93";
* first slen characters of s.
*/
char *
-strnstr(s, find, slen)
- const char *s;
- const char *find;
- size_t slen;
+strnstr(const char *s, const char *find, size_t slen)
{
char c, sc;
size_t len;
|